Visio Guy

Visio Discussions => Programming & Code => Topic started by: pahmann on February 27, 2018, 02:13:54 AM

Title: Require Values on Shape Data upon insert of stencil
Post by: pahmann on February 27, 2018, 02:13:54 AM
Can you code in VBA that a user gets prompted to enter values in one or more shape date elements when they insert a new stencil shape into a diagram?
Title: Re: Require Values on Shape Data upon insert of stencil
Post by: Surrogate on February 27, 2018, 07:36:25 AM
You also can use Shape Data for this.
About two minutes video
PS Sorry for my terrible speech  ;D
Title: Re: Require Values on Shape Data upon insert of stencil
Post by: Paul Herber on February 27, 2018, 09:11:01 AM
No VBA needed, just right-click on the shape and select Define Shape Data.
Create the data items you want here, one of the options for each item is "Ask on drop", so when the shape is dropped on the page a dialog box will open asking for the values.