ContentControlListEntry.Text Property
Word Developer Reference |
Returns or sets a String that represents the display text of a list item for a drop-down list or combo box content control. Read/write.
Syntax
expression.Text
expression An expression that returns a ContentControlListEntry object.
Remarks
List entries must have unique display names. Attempting to change the Text property to a string that already exists in the list of entries raises a run-time error.
Example
The following example capitalizes the first character, if it is lowercase, in the display text of each list item.
Visual Basic for Applications |
---|
|
The following example sets the value for the list item based on the contents of the display text.
Visual Basic for Applications |
---|
|
See Also