title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
MasterShortcut.OpenIconWindow method (Visio) |
vis_sdr.chm16016410 |
|
|
e6a736ec-14f5-0653-2024-213428e1050c |
06/08/2017 |
medium |
Opens an icon window that shows a master's icon.
expression. OpenIconWindow
expression A variable that represents a MasterShortcut object.
Window
If the master's icon is already displayed in an icon window, the OpenIconWindow method activates that window rather than opening another window.
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
[!includeSupport and feedback]