I'm trying to assign a macro to a shape via another macro. I need to put three parameters in there that are variables in my original script. I'm getting a bit lost on the syntax and where I need my quotes.
The end result I want is the shape to be assigned with 'myMacro "var1", "var2", var3"'
I've selected the shape and used:
Selection.OnAction = "'myMacro "" & var1 & ", "" & var2 & ","" & var3 & ""'"
But, the variables aren't being set correctly. I'm sure the issue is with my quotes and such. Anyone have any good advice?
The end result I want is the shape to be assigned with 'myMacro "var1", "var2", var3"'
I've selected the shape and used:
Selection.OnAction = "'myMacro "" & var1 & ", "" & var2 & ","" & var3 & ""'"
But, the variables aren't being set correctly. I'm sure the issue is with my quotes and such. Anyone have any good advice?