I am working on a helper macro that look into the list function on a given module name on the active excel workbook.
Ex: I have a module name “Module1”. Inside this module has the following function or sub
Sub Sub1()
End Sub
Sub Sub2()
End Sub
Function Func1()
End Function
Function Func2()
End Function
Is there a command or routine that can return the list of Function and Sub names?
Here is a link to Chip Pearson’s site. This is where I go whenever I need to program something that affects or uses the VBE. There are 2 sections that might interest you. One will list all modules in a project. And another will list all procedures in a module. Hope that helps.
http://www.cpearson.com/excel/vbe.aspx
Code from the site (make sure to visit the site for instructions on adding a reference to the VBIDE object library:
This code will list all the procedures in Module1, beginning the listing in cell A1.