Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Going purely on the syntax you noted, try removing the spaces:
..onAction = "'MACRONAME ""p1string"", 2, ""p2string""'" -- Please rate this post if it answers your question. Thanks, Chris http://www.ProfessionalExcel.com "LABKHAND" wrote: Hi All, I am trying to pass three parameters to the OnAction property of a menu Control object. What is the syntax for passing these parameters as part of the macro name? I currently have: With .Controls(Caption) .OnAction = sMacroName .Parameter = sParameter .BeginGroup = bFlagDivider .Enabled = sFlagEnabled End with I have tried the syntax " ' MACRO NAME ""p1string"", 2, ""p2string"" ' " which is not working and i get a syntax error that the maco does not exist. Please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OnAction of Menu Bar with variable parameters | Excel Discussion (Misc queries) | |||
Set up OnAction of a Menu Bar button to a function with variable in the parameters | Excel Discussion (Misc queries) | |||
Passing parameters Cel Ref) to Sum function | Excel Discussion (Misc queries) | |||
DrawingObjects/AutoShapes' .OnAction property in DialogSheets | Excel Discussion (Misc queries) | |||
Capturing Shape Name/Text from OnAction property | Excel Discussion (Misc queries) |