ContentControl.ID property (Word)

Returns a String that represents the identification for a content control. Read-only.

Syntax

expression.ID

expression An expression that returns a ContentControl object.

Remarks

The ID property is an internal number that you cannot change but that you can use to identify a content control in code. This number is unique for each content control and does not change.

When you get the ID property value at runtime, it is returned as an unsigned value. However, when saved into the Office Open XML file format, it is saved as a signed value. If your solution attempts to map programmatically returned values to values saved in the file format, you must check for both the unsigned and signed version of the value obtained from this property.

See also

ContentControl Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.