0

Basically, I have a drop-down list content control with two possible values, Apple and Orange. When I select either one of them, I want that word to be repeated throughout the document.

Until now, what I used to achieve a similar role are quick parts - document property. But, that only works for words or values that I manually write or copy.

What I want though, is instead of manually changing the word, to have a way of just selecting the word from a drop-down and have it repeated.

Having tinkered in Excel a lot lately, a parallel I can draw here is a data validation drop-down menu in one cell, lets say A2 and have another cell, lets say B4, just =A2.

4
  • 1
    Welcome to Super User. Please share with us any research you have done and details of anything you have attempted so far. Have you done any research on how to use Bookmarks in Word for repeating words in a document?
    – CharlieRB
    Feb 8, 2016 at 21:30
  • Thank you. As far as research goes, I have some before posting, including Bookmarks. The problem is that everything I found deals with "static" text - which is written manually by the user. What I need is a way of grabbing and repeating text from a drop-down list, which isn't written by the user (prewritten). Bookmarks, for example basically copy the drop-down (as independent) list, but don't update when changed. Another thing I thought about is if I could nest the drop-down in another field and repeat that "mother" field that would be another way of solving this. Also, thanks for the edit.
    – vitesse
    Feb 8, 2016 at 21:56
  • 1
    That is not true. I use drop down list and when tabbing out if it, the reference fields change. How are you making the drop down list? It needs to be from the legacy forms menu, not ActiveX Controls.
    – CharlieRB
    Feb 8, 2016 at 21:59
  • Developer - Drop-Down List Content Control.
    – vitesse
    Feb 8, 2016 at 22:02

2 Answers 2

1

You can do this for a dropdown list content control in Word 2013, without coding, as long as you are in a position to use one of the predefined Cover Page Properties.

Another consideration is that Content controls only work properly on Windows versions of Word. If you need your document to work on Mac Word 2011 or 2016 you have to work with the legacy forms controls.

Steps:

  • In the Developer tab, display the XML Mapping Pane.
  • In the dropdown in that pane, select "http://schemas.microsoft.com/office/2006/coverPageProps" . You should see a short list starting with "PublishDate".
  • Select your dropdown.
  • Select one of the properties, say "CompanyEmail".
  • Right-click the property name and select "Map to Selected Content Control"
  • To insert a copy of the dropdown value, select the appropriate location in your document, right-click on the property name again, and select Insert Content Control->Plain Text.

You may want to make the control read-only. You can make further copies by copying/pasting that control.

If you can't use the built-in property names - e.g. they are already being used by a cover page in the document - you would have to do some coding. One way is to use some VBA code to insert your own Custom XML Part, in which case you can either do the mapping in VBA or using the above procedure, but mapping to your part. A web search should lead you to information on how to do that. The other way is to modify the XML content of the .docx file (which is also "coding" IMO, and probably less well-documented).

1
  • Great! This does exactly what I need. I followed your steps and used CompanyFax (honestly, who uses a fax anymore?). Since this file will be used by people who aren't quite as knowledgeable when it comes to computers, I needed something that worked, at least seemingly, in a more easy to use/understand fashion.
    – vitesse
    Feb 9, 2016 at 12:28
0

Create the drop down with the legacy forms menu. Within drop-down field options, add your items for the list, make note of the Bookmark: name, then make sure both check-boxes are selected. Click OK.

enter image description here

Within you document, add a reference to the drop-down by inserting a Cross-reference from the Insert tab. Choose the Reference type: as bookmark, the Insert reference to:, and select the bookmark you want as follows.

enter image description here

Now protect the document with editing restrictions to Fill in forms.

Now make a selection from the drop-down and press Tab to update the fields.

enter image description here

4
  • I was wondering why the arrow wasn't appearing next to the legacy drop-down. I'll keep this in mind for future reference. However, having to lock down the file is a problem. It needs to stay editable. That's why I was using the Drop-Down List Content Control. It can be used while editing the document. I was hoping there was a simpler solution.
    – vitesse
    Feb 9, 2016 at 8:30
  • Although I see you have an accepted answer, for future questions, please ensure all details of requirements are in the question. Otherwise, you end up disqualifying good answers because you didn't explain everything.
    – CharlieRB
    Feb 9, 2016 at 12:41
  • For what it's worth, I did +1 your answer (although apparently it didn't count yet), especially because of the effort you put into very helpfully illustrating exactly what needs to be done. Unfortunately, at the time I didn't know that the document had to be or even could be locked like that. That's why I sometimes prefer asking a question earlier on in my "venture" because even knowing the exact question to ask or explain without a at least a partial understanding of a problem can be more troublesome if attempted in a search engine instead of talking to real people. I really do thank you.
    – vitesse
    Feb 9, 2016 at 13:56
  • It's all good. There are no hard feelings here. My comment was for the sake of improvement. As a community helping each other, with the intent someone else will read your question because they are experiencing the same thing, we want to make sure our questions are as complete as possible so as to avoid misleading answers.
    – CharlieRB
    Feb 9, 2016 at 14:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .