Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DropdownListEntries Property

ContentControl.DropdownListEntries Property

Office 2007
Returns a ContentControlListEntries collection that represents the items in a drop-down list content control or in a combo box content control. Read-only.

Syntax

expression.DropdownListEntries

expression   An expression that returns a ContentControl object.

Example
The following example inserts a new drop-down list content control into the active document, sets the title and placeholder text, and then adds several new items to the list.

Visual Basic for Applications
Dim objCC As ContentControl
Dim objMap As XMLMapping

Set objCC = ActiveDocument.ContentControls.Add(wdContentControlDropdownList)
objCC.Title = "My Favorite Animal"
objCC.SetPlaceholderText , , "Select your favorite animal "

'List entries
objCC.DropdownListEntries.Add "Cat"
objCC.DropdownListEntries.Add "Dog"
objCC.DropdownListEntries.Add "Horse"
objCC.DropdownListEntries.Add "Monkey"
objCC.DropdownListEntries.Add "Snake"
objCC.DropdownListEntries.Add("Other")



Community Additions

ADD
Show:
© 2015 Microsoft