Document Stencil Blues

V

VKY

I wanted to copy a master from the document stencil to another stencil
and can achieve this easily enough by opening the document stencil,
selecting the master and using copy and paste.

However, I am unable to find the proper way that the above can be done
using code or programmatically. I am able to choose the master I want in
the document stencil using:

ActiveDocument.Masters(MyMasterID)

However, the Master object that is returned does not have a copy method.
When I tried:

ActiveDocument.Masters(MyMasterID).Shapes(1).Copy

the resulting shape when saved onto another stencil is not the exact
copy and does not inherit the names and other properties.

Any pointers would be greatly appreciated.
Thanks.
 
J

JuneTheSecond

Please try Drop method, drop method can be applied to master.
Dim mst As Visio.Master
Set mst = Visio.Documents("Stencil2").Masters(1)
Visio.Documents("stencil3").Drop mst, 0, 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top