View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz[_2_] JLGWhiz[_2_] is offline
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?