Custom Toolbar

  • Thread starter Thread starter GoogleGirl
  • Start date Start date
G

GoogleGirl

am trying to assign a macro to a Button on a custom toolbar.

The following works:


CommandBars("MyCustomToolbar").Controls("Button1").OnAction = "MyMacro"



But, I can't figure out how to assign a macro to a button on a custom
toolbar that is in a "Group" (or submenu) on the Custom toolbar.


Can you please help?
 
CommandBars("MyCustomToolbar").Controls("MyMenu").Controls("Button1").OnAction
= "MyMacro"

--
Jim
| am trying to assign a macro to a Button on a custom toolbar.
|
| The following works:
|
|
| CommandBars("MyCustomToolbar").Controls("Button1").OnAction = "MyMacro"
|
|
|
| But, I can't figure out how to assign a macro to a button on a custom
| toolbar that is in a "Group" (or submenu) on the Custom toolbar.
|
|
| Can you please help?
|
 
Back
Top