Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to insert text into each routine

Status
Not open for further replies.

aimlion11yahoo

Instructor
Jul 20, 2006
42
US
Is it possible to write a macro in VS2003 that would find each Sub and Function, and then insert a statement to write the name of the Sub or Function to any output file as the first line or the Sub or Function?

That might have been a bit confusing, so I'll try to explain it another way:

I need a macro to do the following:
1) Find each Sub and Function in the project.
2) Capture the name of the Sub or Function.
3) Insert the following statement as the first line of the Sub or Function: Debug.writeline([name of Sub or Function]).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top