Visio Guy

Visio Discussions => Programming & Code => Topic started by: Gustavo on November 17, 2017, 11:15:16 PM

Title: Fill selected shapes property value with a VBA form text value
Post by: Gustavo on November 17, 2017, 11:15:16 PM
Hi all

I'm trying to make a macro that fill some selected shapes property cells value, with the value of a VBA form text field. All instances of the same master shape. For that I've tried to modify a little bit code from this post from VisioGuy http://visguy.com/vgforum/index.php?topic=57.msg183#msg183 (http://visguy.com/vgforum/index.php?topic=57.msg183#msg183) in a class module, but how do I call it from a VBA form? Please point me in the right direction.

Best regards.

Title: Re: Fill selected shapes property value with a VBA form text value
Post by: Yacine on November 18, 2017, 05:59:14 PM
A usual trigger would be the push of a button.
Create one and in its click event call the desired sub.

sub myButton_Click(...?)
  myRoutine
end sub