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
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 44 (show)
Files included: 25 - 922KB. (show)
Memory used: 766KB.
Tokens: post-login.
Cache hits: 7: 0.00118s for 22,301 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]