Attach macro to a custom toolbar menu

R

RogerC

I've recorded multiple macros that turn off and turn on different
combinations of Layers. I've also created a custom Toolbar with Menus on
them. I would like to attach the macros to items on the Menus so my users
can select view options for the drawing page. In other words, when they
select 'Option A' from the menu, the associated macro would run turning on
and off the proper shapes for that particular drawing configuration.

How do I assign my macros to the Menus on my Toolbar?
 
R

RogerC

Michel - No, I have not tried using RUNMACRO because I'm not very skilled at
working in code. Thanks for the suggestion though... I will look into it
now.
 
R

RogerC

Al - The technique in David's blog demonstrates attaching code to buttons on
the drawing page. Initially I was wanting to attach my macros to a custom
menu in the toolbar area. However, if using the button technique instead
would allow the macros to be executed while the drawing is in Full Screen
mode, that would be a better thing.

Do you know if they would work in Full Screen view?
 
A

Al Edlund

Roger,
The code demonstrates how to interact with the drawing, David just puts the
code into the button event. The code can easily be re-written as standalone
macros that you can call whatever way you want. Regarding buttons on pages,
I uses them all the time when I am sandboxing and they do work in full
screen.
al
 

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