This documentation is archived and is not being maintained.

Shape.ID Property

Office 2007
Returns a Long that represents the type of a shape, range of shapes, or property, type, or value of a wizard. Read-only.



expression   A variable that represents a Shape object.

This example displays the type for each shape on the first page of the active publication.

Visual Basic for Applications
Sub ShapeID()
    Dim shp As Shape
    For Each shp In ActiveDocument.Pages(1).Shapes
        MsgBox shp.ID
    Next shp
End Sub

See Also