Document.OpenStencilWindow Method

Visio Automation Reference

Opens a stencil window that shows the masters in the document.

Version Information
 Version Added:  Visio 4.1

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.

Visual Basic for Applications
  
Public Sub OpenStencilWindow_Example() 
Dim vsoStencilWindow as Visio.Window 

'Open the Document Stencil window.
Set vsoStencilWindow = ThisDocument.OpenStencilWindow 

End Sub

See Also