My Googling has failed...
I have a rich text control at the top of a doc. I want the same text to appear elsewhere in the document so do I have to bookmark the control and then cross refer to that bookmark, or there a way of directly cross referring to the control?
Thanks,
Ken
cross ref to a text control
-
- Panoramic Lounger
- Posts: 8267
- Joined: 25 Jan 2010, 09:09
- Location: retirement
-
- 4StarLounger
- Posts: 508
- Joined: 17 Dec 2010, 03:14
Re: cros ref to a text control
Bookmarking content controls is problematic - doing so tends to replicate the entire control, which is a real problem if you lock it against deletion. There are alternatives, though, including mapped & repeating content controls. Which approach you use depends on which Word versions you're supporting. See:
https://gregmaxey.com/word_tip_pages/re ... _data.html" onclick="window.open(this.href);return false;
https://msdn.microsoft.com/en-us/librar ... 89465.aspx" onclick="window.open(this.href);return false;
You could also use a ContentControlOnExit macro to update bookmarks and/or other content controls, for example.
https://gregmaxey.com/word_tip_pages/re ... _data.html" onclick="window.open(this.href);return false;
https://msdn.microsoft.com/en-us/librar ... 89465.aspx" onclick="window.open(this.href);return false;
You could also use a ContentControlOnExit macro to update bookmarks and/or other content controls, for example.
Paul Edstein
[Fmr MS MVP - Word]
[Fmr MS MVP - Word]
-
- Administrator
- Posts: 12683
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: cros ref to a text control
One easy method that I use for things like this is to use a unique style for the rich text control, and then use a Styleref field to repeat the text.
StuartR
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: cros ref to a text control
I was just posting this option (using styles) too Stuart! I see it is also referenced in the extensive article from Greg Maxey in Pauls post.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8267
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: cros ref to a text control
Thank you, I'll read up on all those links.
Meanwhile I'm already beginning to discover some 'interesting' aspects of bookmarking a rich text control & cross refer to it, e.g. if you then 'group' the controls, so that only the controls are editable / the rest of the doc is locked then you can't use F9 on the cross ref to get it to update, because it is in the locked bit of the doc
Ken
Meanwhile I'm already beginning to discover some 'interesting' aspects of bookmarking a rich text control & cross refer to it, e.g. if you then 'group' the controls, so that only the controls are editable / the rest of the doc is locked then you can't use F9 on the cross ref to get it to update, because it is in the locked bit of the doc
![HairOut :hairout:](./images/smilies/hairout.gif)
Ken
-
- 5StarLounger
- Posts: 641
- Joined: 10 Jan 2016, 15:56
- Location: Madison, Wisconsin
Re: cros ref to a text control
Rather that using REF fields and bookmarks, look into mapping.
http://addbalance.com/word/MappedControls.htm
With mapped content controls, changes in one place show up in all twinned controls without worrying about whether or not REF fields will update.
The mapped controls built into Word work wonderfully, but none are Rich-Text. For that, I would use Greg Maxey's tools.
http://gregmaxey.com/word_tip_pages/con ... tools.html
http://addbalance.com/word/MappedControls.htm
With mapped content controls, changes in one place show up in all twinned controls without worrying about whether or not REF fields will update.
The mapped controls built into Word work wonderfully, but none are Rich-Text. For that, I would use Greg Maxey's tools.
http://gregmaxey.com/word_tip_pages/con ... tools.html
![Cheers :cheers:](./images/smilies/cheers.gif)
Templates in Microsoft Word
Modifying the QAT
The Importance of Styles in Microsoft Word