Export (0) Print
Expand All
Expand Minimize

Range.ContentControls Property (Word)

Returns a ContentControls collection that represents the content controls contained within a range. Read-only.

Version Added: Word 2007

expression .ContentControls

expression An expression that returns a Range object.

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

Dim objCC As ContentControl 
Dim objRange as Range 
 
Set objRange = ActiveDocument.Range(200, 200) 
Set objCC = objRange.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"

Concepts

Other resources

Show:
© 2014 Microsoft