MasterShortcut.OpenIconWindow method (Visio)
Opens an icon window that shows a master's icon.
Syntax
expression. OpenIconWindow
expression A variable that represents a MasterShortcut object.
Return value
Window
Remarks
If the master's icon is already displayed in an icon window, the OpenIconWindow method activates that window rather than opening another window.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the OpenIconWindow method to open an icon editing window.
Public Sub OpenIconWindow_Example()
Dim vsoMaster As Visio.Master
Dim vsoIconWindow As Visio.Window
'Add a master to the document stencil and open its icon editing window.
Set vsoMaster = ThisDocument.Masters.Add
Set vsoIconWindow = vsoMaster.OpenIconWindow
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.