Document.OpenStencilWindow method (Visio)
Opens a stencil window that shows the masters in the document.
Syntax
expression.OpenStencilWindow
expression A variable that represents a Document object.
Return value
Window
Remarks
If the document's stencil is already displayed in a stencil window, the OpenStencilWindow method activates that window rather than opening another window.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the OpenStencilWindow method to open the Document Stencil window.
Public Sub OpenStencilWindow_Example()
Dim vsoStencilWindow as Visio.Window
'Open the Document Stencil window.
Set vsoStencilWindow = ThisDocument.OpenStencilWindow
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.