Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (35 sloc) 1.23 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date localization_priority
Range.ContentControls property (Word)
vbawd10.chm157155752
vbawd10.chm157155752
word
Word.Range.ContentControls
e8c715af-067f-871e-7dec-28aa4302d9f9
06/08/2017
Normal

Range.ContentControls property (Word)

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

Syntax

expression. ContentControls

expression An expression that returns a Range object.

Example

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"

See also

Range Object

[!includeSupport and feedback]

You can’t perform that action at this time.