This documentation is archived and is not being maintained.

Document.ContentControls Property

Office 2007
Returns a ContentControls collection that represents all the content controls in a document. Read-only.

Version Information
 Version Added:  Word 2007

Syntax

expression.ContentControls

expression   An expression that returns a Document object.

Example

The following example inserts a drop-down list content control into the active document.

Visual Basic for Applications
Dim objCC As ContentControl

Set objCC = ActiveDocument.ContentControls.Add(wdContentControlDropdownList)

'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"



Show: