NameID property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

NameID property

NameID property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. See also         Example Applies to

Returns a unique name for a shape.

Version added



strRet = object.NameID


String. The unique name of the shape.


Required. An expression that returns a Shape object.


The NameID property returns a unique identifier for each shape on a page or master. The identifier has the following form: sheet.N, where N is the shape's ID property.

The value of the NameID property is unique within a page or master, but not across pages or masters. At any moment, no other shape on the same page or master has the same NameID property. However, shapes on other pages or masters may have the same NameID property. The value of a shape's UniqueID property is unique across pages and masters.

Also, NameID properties are reused. If a shape whose NameID property is sheet.N is deleted, then a shape subsequently added to the same context may be assigned sheet.N as its NameID property. Therefore, persisting NameID properties in separate data stores is generally not as sound as persisting UniqueID properties.

© 2016 Microsoft