Thread: Calling a macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Otto Moehrbach Otto Moehrbach is offline
external usenet poster
 
Posts: 1,090
Default Calling a macro

Excel XP, Win XP
I have a number of macros, say Able, Baker, Charlie, etc.
I have a variable named MacroToRun as string.
I have code that sets the value of MacroToRun as, say, "Charley".
I want to run the macro whose name is in the variable MacroToRun.
How do I call that macro?
Thanks for your time. Otto