avstill.blogg.se

Microsoft word content control drop down list not working
Microsoft word content control drop down list not working













  1. MICROSOFT WORD CONTENT CONTROL DROP DOWN LIST NOT WORKING CODE
  2. MICROSOFT WORD CONTENT CONTROL DROP DOWN LIST NOT WORKING PASSWORD

Tap the Add… button in the popping out Content Control Propertieswindow.ħ. Click it, and hit Properties in Controls section under Developer tab.Ħ. Now the list has been added to the where your cursor is.ĥ. Then go to Developer tab and find Drop-down List Content Control in Controls section.Ĥ. Place your cursor at where you want to add a drop-down list. Check Developer in the list of Main Tabs (under Customize the Ribbon) to enable it, and click OK to confirm the change.ģ. If not, click File > Options, and switch to Customize Ribbonpane in Word Options.Ģ. First, have a check that if you can find Developer tab in your Word. For similar reasons, some people may also want to add a drop-down list in Word. When selecting Fruit from the first drop-down list, only the fruit categories can be selected in the second one.I’ve wrote a post about creating a drop-down list in Excel before. Now the dependent drop-down lists are created.

microsoft word content control drop down list not working

MICROSOFT WORD CONTENT CONTROL DROP DOWN LIST NOT WORKING PASSWORD

In the Restrict Editing pane, you need to:ġ0.1), Check the Allow only this type of editing in the document box ġ0.2) Select Filling in forms option from the drop-down list ġ0.3) Click the Yes, Start Enforcing Protection button ġ0.4) In the Start Enforcing Protection dialog, enter the password and click the OK button. Now click Developer > Restrict Editing as below screenshot shown.ġ0. In the dialog box, please select the above Macro name (here is Popolateddfood) from the Exit drop-down list, and then click the OK button.ĩ. Right click the first drop-down list and click Properties to open the Drop-down Form Field Options dialog box.

MICROSOFT WORD CONTENT CONTROL DROP DOWN LIST NOT WORKING CODE

Save the code and go back to the document.Ĩ. ddfood and ddCategory should match the Bookmark options you entered in the above two Drop-down Form Field Options dialog boxes.ħ. In the code, please change items under each case as you need.Ģ. If ((xDirection Is Nothing) Or (xState Is Nothing)) Then Exit Subġ. Set xState = ActiveDocument.FormFields("ddCategory") Set xDirection = ActiveDocument.FormFields("ddfood") VBA code: Create dependent drop-down list in Word Sub Populateddfood()

microsoft word content control drop down list not working

In the Microsoft Visual Basic for Applications window, click Insert > Module, then copy below VBA code into the Module window. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.Ħ.

microsoft word content control drop down list not working

Right click the second drop-down list, click Properties to open its Drop-down Form Field Options dialog box, and in the dialog, enter ddCategory into the Bookmark box and click the OK button. In the opening Drop-down Form Field Options dialog box, you need to:ģ.1 Enter the category into the Drop-down item box and then click the Add button, repeat the operation until all categories are added to the Items in drop-down list box.Ĥ.

microsoft word content control drop down list not working

Right click the first drop-down list (this drop-down list should be the parent one), and click Properties. Click Developer > Legacy Forms > Drop-Down Form Field. Firstly, you need to insert two drop-down lists in your Word document. Please follow the instruction step by step.ġ. The below VBA code can help you creating dependent drop-down lists in a Word document. As the left screenshot shown, you need to limit the choices in the second drop-down list based on the option in the first drop-down, how can you do? This article will show you method to create dependent drop-down lists in Word document.Ĭreate dependent drop down lists in Word with VBA code















Microsoft word content control drop down list not working