Custom Toolbar

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?
 
J

Jim Rech

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?
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top