Document Editing Problems

Make a Word Drop-Down Content Control Value Editable

Kushani NimanthikaKushani Nimanthika Nov 20, 2026 869 views

Question details

Make the value associated with a Word drop-down selection editable instead of leaving only the displayed name.

Make a Word Drop-Down Content Control Value Editable
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.
Before you start

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.

Solution 1Recommended

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.

1
Set the control title

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.

2
Open the document's code module

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

3
Test the result

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.

Replace the drop-down control with its edited value using VBA
Canceling the dialog: This example leaves the control unchanged if the input is empty, including when Cancel is selected. It therefore does not allow an empty final value.
Free Microsoft Office alternative

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.

Edit document text in a familiar Writer interfaceOpen and save common Microsoft Word formats, including DOC and DOCXMove existing documents into a lightweight Office alternativeUse free document-editing tools for everyday work
microsoft office alternative - wps office

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.