Add Multiple Items to a Microsoft Word Drop-Down List with VBA
Question details
The user wants to add many long choices to a Word template’s drop-down list without entering each choice through the control’s properties.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A template needs a drop-down list content control populated with several predefined choices.
- Observed behavior
- The desired result is a template with all choices available in the drop-down list after a VBA macro initializes it.
Open the template itself in a desktop version of Word that supports VBA, rather than creating a new document from it. Make sure the Developer tab is available and that your organization permits macros.
Populate a Word drop-down list content control with VBA
Use this method to initialize the choices in a template without adding them individually in the properties dialog.
This example applies to drop-down list content controls, not legacy form fields or ActiveX controls. It updates every drop-down content control titled Criterion in the active template and replaces its existing choices.
In Word, select File > Open and open the template file itself. Use File > Save As and select Word Macro-Enabled Template (*.dotm) if the template is not already macro-enabled.
On the Developer tab, select Drop-Down List Content Control. Select the control, choose Properties, enter Criterion in the Title field, and select OK. If Developer is hidden, enable it in Word’s ribbon customization settings.
Select Developer > Visual Basic. In the editor, select the template’s project, choose Insert > Module, and paste this code: Sub PopulateCriterionList() Dim cc As ContentControl Dim found As Boolean For Each cc In ActiveDocument.ContentControls If cc.Type = wdContentControlDropdownList Then If cc.Title = "Criterion" Then found = True cc.DropdownListEntries.Clear cc.DropdownListEntries.Add "First long choice" cc.DropdownListEntries.Add "Second long choice" cc.DropdownListEntries.Add "Third long choice" End If End If Next cc If Not found Then MsgBox "No drop-down list titled Criterion was found." End Sub
In the Visual Basic editor, replace the example text with your actual choices. Add another cc.DropdownListEntries.Add line for each item, and double any quotation marks that are part of a choice.
Return to the open template, select Developer > Macros, choose PopulateCriterionList, and select Run. Open the drop-down to check the choices, then select File > Save.

Edit Word-Compatible Templates with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for Word formats, making it easy to move everyday documents between suites. The Word-specific VBA procedure above must be performed in Microsoft Word.

Frequently Asked Questions
Why does the macro say it cannot find Criterion?
Select the drop-down control in the open template, then choose Developer > Properties and check that its Title is exactly Criterion. Also confirm that it is a drop-down list content control, not a legacy or ActiveX control.
Will running the macro remove existing choices?
Yes. The DropdownListEntries.Clear line removes the existing choices before the Add lines insert the new ones. Edit the macro before running it if you need to retain any choices.
Do users need to run the macro every time they create a document?
No. Once the list is populated and the template is saved, new documents based on that template inherit the saved choices. The macro is useful again if you need to rebuild the list.
Will updating the template change documents already created from it?
No. The macro updates matching controls in the active template or document. Existing documents generally retain their own copies of the controls and need to be updated separately.
Can I save the template without macros after populating the list?
Yes. Remove the macro module if it is no longer needed, then use File > Save As and choose Word Template (*.dotx). Reopen the saved template and check that the choices are present.




