How can I obtain a programmatic reference to the document stencil?

I

Ira Davis

I need to be able to drop shapes using VBA from the document stencil. I
normally use the Page.Drop method and supply a master from a named stencil.
How can I get a reference to the document's stencil?
 
A

AlEdlund

the 'document stencil' is actually the collection of masters in the
working document

dim visMasters as visio.masters
visMasters = application.activedocument.masters

al
 
I

Ira Davis

Thanks for the response, I think this will be useful. I had called
OpenStencilWindow method of the ThisDocument object and explored the window
object in the VBA debugger. I found that the Window had a Document property
and I was able to use the Masters collection of that property to do what I
wanted. With your info, I now have at least two ways of locating masters.

Thanks.
 

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