Visio Guy

Visio Discussions => Programming & Code => Topic started by: qholmes on May 18, 2017, 07:17:31 PM

Title: Macro assigned to Ribbon
Post by: qholmes on May 18, 2017, 07:17:31 PM
This should be easy. I just want to record a few little macros to get out of having to go into menus to set things. But I cant seem to get a macro assigned to a button?
I googled and looked in the forum but it seemed that I always found something more complicated than I needed.

I don't really want it stored in a drawing or Stencil.. just in the UI of Visio?

Is this possible?

When I go to customize the Ribbon it does not show me the Macros I have recorded like I have read it should.

Thanks

Q
Title: Re: Macro assigned to Ribbon
Post by: Surrogate on May 18, 2017, 07:50:35 PM
Hope this article by David J Parker (https://mvp.microsoft.com/en-us/publicprofile/21090?fullname=david%20john%20parker) can help - How to Run VBA Macros from a Ribbon Button in Visio 2010 (https://blog.bvisual.net/2011/03/14/how-to-run-vba-macros-from-a-ribbon-button-in-visio-2010/)
Title: Re: Macro assigned to Ribbon
Post by: qholmes on May 18, 2017, 08:26:39 PM
Yes.. I already looked at that one. hehe..

I cant believe I cant just add a macro to a button in the ribbon like you used to be able to do in different packages.. its crazy. Why should I have to program a button to use a macro. Macros are for the just above standard users.. not for hard core programmers.. its crazy..

I will use the keyboard short cuts I guess for now.

So.. in order to use them in different drawings I will have to save them to a Stencil I assume.

Thanks

Q
Title: Re: Macro assigned to Ribbon
Post by: Surrogate on May 18, 2017, 08:56:48 PM
Do you read this thread - Custom Ribbon with VBA in Visio Stencil (http://visguy.com/vgforum/index.php?topic=7134) ?
Title: Re: Macro assigned to Ribbon
Post by: qholmes on May 18, 2017, 09:00:57 PM
Thanks, I will give that a try.

Q