ContentControlListEntry.Delete method (Word)
Deletes the specified item in a combo box or drop-down list content control.
Syntax
expression.Delete
expression An expression that returns a ContentControlListEntry object.
Example
The following example deletes a drop-down list item if the display text of the item is "Other".
Dim objCC As ContentControl
Dim objCL As ContentControlListEntry
For Each objCC In ActiveDocument.ContentControls
If objCC.Type = wdContentControlComboBox Or _
objCC.Type = wdContentControlDropdownList Then
For Each objCL In objCC.DropdownListEntries
If objCL.Text = "Other" Then objCL.Delete
Next
End If
Next
See also
ContentControlListEntry 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.