How to add a button that runs a macro on the toolbar

B

Balex

Hi,

I have written a series of VBA macros for hiding / showing layers in a Visio
drawing. I have not found any other solution than to run these from ActiveX
buttons placed on the drawing, and it works, but ActiveX is not a thing I
want to keep if possible: the drawing is used in a big bank, and they don't
fancy ActiveX at all, security risks and all that... So I'd like to replace
the ActiveX controls with simple buttons on the toolbar.

In Word, there is nothing easier than adding a macro as a button in the
toolbar. I CAN'T FIND that possibility in Visio ! Am I missing something, or
what ?

Can anybody help me to implement the functionality of calling a subroutine
from the toolbar or menus ?

Thanks and regards
Balex
 
J

JuneTheSecond

In Visio VBA the UIObject would be that makes toolbar buttons.
For detail, would you please refer to the help documents.
Or Office CommandBars object would also makes them.
 

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