Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim xMacro
xMacro = "ApplicationName" Application.run xMacro Sub Macro1(x, y) MsgBox x & " " & y End Sub Sub Macro2() Dim xMacro xMacro = "Macro1" Application.Run xMacro, "StringArg1", 29 End Sub -- Regards, Tom Ogilvy "Jack Adams" wrote in message ... Is there a way to store the name of a macro (with or without parameters) in a named variable and then activate the macro using the variable reference name? Thanks, Jack This doesn't work but is waht I am trying to accomplish Dim xMacro xMarco = "ApplicationName" Application. run ApplicationName Likewise for a macro with parameters |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Storing textin a variable and comparing to a second value | Excel Discussion (Misc queries) | |||
Storing a range variable in a cell | Excel Discussion (Misc queries) | |||
Storing a value to variable | Excel Discussion (Misc queries) | |||
Excel VBA - Storing text in a variable, and "'Cells' of object _Global failed" | Excel Programming | |||
storing numbers within the macro | Excel Programming |