Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Macros

Is there a way to programatically list all embedded macros
in a particular workbook? I need to access a workbook
object and update a listbox with all available macros.
thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel Macros

Matt,

Take a look at http://www.cpearson.com/excel/vbe.htm. There is enough code
there to show you how.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Matt" wrote in message
...
Is there a way to programatically list all embedded macros
in a particular workbook? I need to access a workbook
object and update a listbox with all available macros.
thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Macros

http://tinyurl.com/2opra

should provide some sample code.

For general information, see Chip Pearson's site on programming the VBE

http://www.cpearson.com/excel/vbe.htm

basically you have to parse all the modules looking for Sub and Function and
extracting the name.

this assumes you don't want to just show the built in macro selection
dialog.

--
Regards,
Tom Ogilvy

Matt wrote in message
...
Is there a way to programatically list all embedded macros
in a particular workbook? I need to access a workbook
object and update a listbox with all available macros.
thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel Macros

Hi Matt

Try Chip Pearson's page
I believe he have a example

http://www.cpearson.com/excel/vbe.htm

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Matt" wrote in message ...
Is there a way to programatically list all embedded macros
in a particular workbook? I need to access a workbook
object and update a listbox with all available macros.
thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 02:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"