Visio Guy

Visio Discussions => Programming & Code => Topic started by: kiler40 on July 16, 2014, 02:59:17 PM

Title: copy command button to a new page but keep the macro that is calling
Post by: kiler40 on July 16, 2014, 02:59:17 PM
Hello People !
I have a command button on the page that calls a macro.
My question is how to copy the button on a new page but not to need to assign the macro again to it but to remember the first assigning.

I know i can create a shape and add event on double click to call the macro in the shape sheet, so after coping it remembers the assigning, but the thing is that this double click is not really nice. I want to use a single click (the macro is called lots of times :) )

And one more thing - when i copy a command button on new page i need click several times before it gets active. Why is that ?
Any ideas ?

thanks in advance !
Title: Re: copy command button to a new page but keep the macro that is calling
Post by: Paul Herber on July 22, 2014, 08:01:15 AM
Visio doesn't do event handling on a singl;e click, if it did it would be very difficult to select the shape.
Might be an idea to attach an example showing what is happening.
Title: Re: copy command button to a new page but keep the macro that is calling
Post by: Yacine on July 22, 2014, 04:09:12 PM
Hi Andrei,
it seems like you are trying to use visio in a "non-typical" way  ;) .
I'd propose that you put that macro in a smarticon. Depending on your visio version, there are different methods to set it up.
The code could be stored in the template.