You can also do this without a macro by using linked Content Controls.
Firstly add a ComboBox Content Control and add entries with names and values corresponding to your pairs eg Name=Unites States, Value=US etc
Select the Content Control and then show the XML Mapping pane, right click one of the available elements and 'Map to Selected Content Control'
Then move your cursor somewhere else in the document and then on the same XML Mapping pane, right click on the same element and choose Insert Content Control > Plain Text
Test it by changing the value of the ComboBox CC
You can then copy and paste the plain text CC to the other locations.
See the attached doc for this example in action
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Last edited by Guessed; 07-31-2019 at 03:38 PM.
Reason: Added Attachment
|