Table of contents
Collapse the table of content
Expand the table of content

ShapeRange.ID Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

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


expression. ID

_expression_A variable that represents a ShapeRange object.


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

Sub ShapeID() 
 Dim shp As Shape 
 For Each shp In ActiveDocument.Pages(1).Shapes 
 MsgBox shp.ID 
 Next shp 
End Sub
© 2018 Microsoft