Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: Miguel on March 30, 2017, 11:48:25 AM

Title: set a shape from my stencil
Post by: Miguel on March 30, 2017, 11:48:25 AM
Hello!

do you know how set a shape variable ?

I would like to drop one of my shape from my stencil on my page.

I'm using this line :

Application.ActiveWindow.Page.Drop Application.Documents.Item("Stencil_For_NewTest (Connector combined).vssx").Masters.ItemU("Function"), 5.905512, 4.855643

How put this action in a shape type variable? 
Title: Re: set a shape from my stencil
Post by: Surrogate on March 30, 2017, 11:54:33 AM
Hi, amigo !
Quote from: Miguel on March 30, 2017, 11:48:25 AM
do you know how set a shape variable ?
why you ask ? try this way
set vsoShp = Application.ActiveWindow.Page.Drop (Application.Documents.Item("Stencil_For_NewTest (Connector combined).vssx").Masters.ItemU("Function"), 5.905512, 4.855643)

Title: Re: set a shape from my stencil
Post by: Miguel on March 30, 2017, 12:01:55 PM
Thank you Master!