Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi James,
Download my VBA Code Documentor utility from the web site below my sig. The code is unprotected, so you can dig in and see how it works. -- Rob Bovey, Excel MVP Application Professionals http://www.appspro.com/ * Take your Excel development skills to the next level. * Professional Excel Development http://www.appspro.com/Books/Books.htm "James Price" <James wrote in message ... I want to be able to use VBA to find out the list of macro names in a workbook. I have used code (see below) that can give me the module names, and also tried with the CodePane function, but I think I'm being a bit thick and missing something. Answers gratefully received Thanks James Sub FindMacros() Dim vbComp As VBIDE.VBComponent Dim wb As Workbook Set wb = ThisWorkbook For Each vbComp In wb.VBProject.VBComponents Debug.Print vbComp.Type & " " & vbComp.Name Next End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't see list of macros | Excel Discussion (Misc queries) | |||
list + macros continued | Excel Programming | |||
List of Macros | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming | |||
List the Macros that can be executed from Tools-Macros | Excel Programming |