Class ListEntry (Word VBA)
The class ListEntry represents an item in a drop-down form field. The ListEntry object is a member of the ListEntries collection. The ListEntries collection includes all the items in a drop-down form field. To use a ListEntry class variable it first needs to be instantiated, for example
Dim ley as ListEntry
Set ley = ActiveDocument.FormFields(1).DropDown.ListEntries(Index:=1)
For Each
Here is an example of processing the ListEntry items in a collection.
Dim ley As ListEntry
For Each ley In ActiveDocument.FormFields(1).DropDown.ListEntries
Next ley
Delete
Deletes the specified list entry.
ActiveDocument.FormFields(1).DropDown.ListEntries(1).Delete
Index
Returns a Long that represents the position of an item in a collection.
Dim lngIndex As Long
lngIndex = ActiveDocument.FormFields(1).DropDown.ListEntries(1).Index
Name
Returns or sets the name of the specified object.
ActiveDocument.FormFields(1).DropDown.ListEntries(1).Name =