WizardTagInstance Property
The document is archived and information here might be outdated

Shape.WizardTagInstance Property

Office 2007
Returns or sets a Long indicating the instance of the specified shape compared with other shapes having the same wizard tag. Read/write.



expression   A variable that represents a Shape object.


The combination of the WizardTagInstance property and the WizardTag property uniquely defines every shape in a publication.


The following example displays the wizard tag and wizard tag instance information for all the shapes on page one of the active publication.

Visual Basic for Applications
Dim shpLoop As Shape

For Each shpLoop In ActiveDocument.Pages(1).Shapes
    With shpLoop
        Debug.Print "Shape: " & .Name
        Debug.Print "    Wizard tag: " & .WizardTag
        Debug.Print "    Wizard tag instance: " _
            & .WizardTagInstance
    End With
Next shpLoop

See Also

© 2016 Microsoft