Possible to run a VBA on a single click on a shape?

Started by VisDom, September 14, 2017, 09:20:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VisDom

Hi all,

I am trying to implement a Layertoggle on my Visio Page. I managed to do that with a CheckBox, but for some reason I cannot manage to change the BackGround of the CheckBox to Transparent with the properties.

I decided I would just draw a shape (as a Button) and put some event on it that would hide/show my layer. My Button would turn green when the layer is shown, and grey, when its hidden.

Is it possible to catch a single click event when clicking on my "ToggleLayer" - Button?

VisDom

wapperdude

#1
Single click is a problem...whenever you select the shape it would fire...for whatever reason.  But, this can be done with double click.

Wapperdude
Visio 2019 Pro

Yacine

@Wapperdude,
yes it would fire every time, but you can filter the following actions, so as to do the toggeling job only for certain shapes, certain situations and so on.

;)
Yacine

wapperdude

#3
Exactly my point.  It fires all the time.  Whereas, it only fires when needed with the dbl click.

Wapperdude
Visio 2019 Pro