Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to run a macro if I don't know the name in advance

I am trying to create a macro on the fly using vb code from an existing file,
and then run the Macro that was just created. Is there a way to find out the
name of a Macro programmatically so that I can pass it to the Application.Run
method?






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default How to run a macro if I don't know the name in advance

Maybe:

myMacroName = Application.Dialogs(xlDialogMacroOptions).Show


"Himanshu" wrote in message
...
I am trying to create a macro on the fly using vb code from an existing
file,
and then run the Macro that was just created. Is there a way to find out
the
name of a Macro programmatically so that I can pass it to the
Application.Run
method?








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
Macro for HEAT chart - THANKS IN ADVANCE! Rachel Costanza Excel Worksheet Functions 15 September 17th 09 11:05 PM
advance filter sustitution in a macro - shared workbook Belinda7237 Excel Worksheet Functions 0 June 11th 08 01:52 AM
Deleting rows with Advance Filter in recorded Macro JHL Excel Programming 4 January 24th 06 07:31 PM
Macro to advance current row by 1 Tom Ogilvy Excel Programming 2 April 9th 04 01:34 PM
Macro to advance current row by 1 Ron de Bruin Excel Programming 0 April 8th 04 09:36 PM


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

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

About Us

"It's about Microsoft Excel"