Opening a Visio Stencil

You now have a new document based upon a specific template, and that template opened up both a new drawing page and one or more Stencils. The next thing you need to do is explicitly get a reference to the Stencil object so that you can work with the Masters on the Stencil. The documents collection has an Item property. The Item property can reference items within the Documents collection object either by integer (the sequence of the item within the collection) or explicitly by name. I will use the latter of these two methodologies to obtain a reference to a Stencil. Study the following example:

 Public Sub ReferenceFlowchartStencil () Dim docsObj As Visio.Documents Dim docObj As Visio.Document Dim stnObj As Visio.Document ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.