Share via


ContentControlListEntry.MoveDown Method

Word Developer Reference

Moves an item in a drop-down list or combo box content control down one item, so that it is after the item that originally followed it.

Syntax

expression.MoveDown

expression   An expression that returns a ContentControlListEntry object.

Example

The following example moves the first item down, so that it becomes the last item in the list of items in a drop-down list or combo box content control.

Visual Basic for Applications
  Dim objCC As ContentControl
Dim objCL As ContentControlListEntry
Dim intCount As Integer

Set objCC = ActiveDocument.ContentControls.Item(3)

If objCC.Type = wdContentControlComboBox Or _ objCC.Type = wdContentControlDropdownList Then

Set objCL = objCC.DropdownListEntries.Item(1)

For intCount = 1 To objCC.DropdownListEntries.Count
    objCL.<strong class="bterm">MoveDown</strong>
Next

End If

See Also