Forum Discussion
ChrisUoN
Jun 29, 2023Copper Contributor
Automatically update text depending on contents of a content control in Word
Hi, is it possible to automatically update part of a Word document using content controls and perhaps field codes or something similar? I'll outline an example here: I have a content control that ...
Dpaulhesk
Aug 30, 2024Copper Contributor
How does one show the results of this in the Word document? I can't tell from here how to show the output. Thanks.
Charles_Kenyon
Aug 31, 2024Bronze Contributor
The results of a choice in a ComboBox or Drop-Down Content Control in Word are shown in the control in the document.
To have the results show up elsewhere you need a mapped control or another method.
- DpaulheskAug 31, 2024Copper ContributorI'm sorry. I wasn't clear. The OP said, "I want a piece of text elsewhere in the document to automatically update with some corresponding text." If I use the VBE that you wrote out, above. How can I get the Value ("One", "Two", etc.) to appear elsewhere in the document?
- Charles_KenyonAug 31, 2024Bronze ContributorIt was not my code, but Doug's.
Read the linked pages in my last response, please. They show how to get a value in one place reflected elsewhere.
If you do not need a dropdown with choices but simply what is typed, you can use the mapped content controls already built into Word: The "Document Property" Quick Part Content Controls.
https://addbalance.com/word/MappedControls.htm#PageStart- DpaulheskSep 01, 2024Copper ContributorThank you for your help. I will try these.