Make a Word Drop-Down Content Control Value Editable
Question details
Make the value associated with a Word drop-down selection editable instead of leaving only the displayed name.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A drop-down content control displays a friendly name, while its list entry has a separate value that should be inserted and edited.
- Observed behavior
- The inserted value is not freely editable while it remains in the drop-down control, and removing the control through its properties can leave the display name instead.
Open the document in desktop Word, enable the Developer tab if needed, and save the file as a macro-enabled Word document (.docm). Make sure the content control is not locked against editing or deletion, and enable macros only for a trusted document.
Replace the drop-down control with its edited value using VBA
Use this approach when the final result should be ordinary text that can be edited directly in the document.
The exit event matches the selected display text to a list entry, retrieves its Value, and asks the user to edit it. It then converts the control to a text control, inserts the result, and deletes the control while keeping its contents.
This replaces the drop-down permanently. Use distinct display names so the code can identify the selected entry reliably.
Select the drop-down content control, open Developer > Properties, and set its Title to MyTitle. Clear the option to remove the control after its contents are edited so the event can process the selection.
Open Developer > Visual Basic. In the project for this document, open ThisDocument and paste the following code: Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean) Dim entry As ContentControlListEntry Dim editedValue As String If ContentControl.Title <> "MyTitle" Then Exit Sub If ContentControl.Type <> wdContentControlDropdownList Then Exit Sub For Each entry In ContentControl.DropdownListEntries If ContentControl.Range.Text = entry.Text Then editedValue = InputBox("Edit the selected value:", "Selected value", entry.Value) If editedValue = "" Then Exit Sub ContentControl.Type = wdContentControlText ContentControl.Range.Text = editedValue ContentControl.Delete False Exit Sub End If Next entry End Sub
Save the .docm file, select an entry in the drop-down, and click outside the control. Edit the value in the dialog and select OK; the control is removed and the resulting document text can be edited normally.

Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. It supports common Word formats to help you move existing files into your workflow, but it does not fix Word's content-control VBA behavior.

Frequently Asked Questions
Why does removing the control leave the display name?
The control displays the list entry's Text, which can differ from its Value. Capture the selected entry's Value before deleting the control, then insert that value into the control's range.
Where should I put the exit-event code?
In desktop Word, open Developer > Visual Basic and paste the Document_ContentControlOnExit procedure into ThisDocument for the document containing the control.
Can I keep the drop-down and edit its text directly?
A drop-down content control restricts its content to list selections. To edit the result as ordinary text, insert the value and delete the control; doing so also removes the drop-down.
Why doesn't the macro run when I leave the control?
Check that the document is saved as .docm, macros are enabled for the trusted file, the code is in ThisDocument, and the control's Title in Developer > Properties matches MyTitle.




