Listing and counting macros per VBA

T

Thomas Wiedmann

Hello,

how, i. e. with which VBA statement, can the name of macros of a module
be listed and counted?

Thomas Wiedmann
 
D

David Sisson

Roughly...

Sub test()
For Each ProjName In ThisDocument.VBProject.VBComponents
Debug.Print ProjName.Name
Next

End Sub
 
T

Thomas Wiedmann

Unfortunately this procedure only displays
ThisDocument
NewMacros
frmBookmarks

I'd like to see a list of the name of procedures and functions under module
'NewMacros'.
By which statement I can get this list of names?

Thomas Wiedmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top