#1
|
|||
|
|||
Trying to refer to a placeholder several times throughout a document
I am creating a template in word where the name of a region and its corresponding state are mentioned several times throughout the document. I have create a placeholder for both these labels that can be updated each time the template is used, however I'm trying to use the placeholders to populate the other parts of the document that refer to the region or state name.
I know the excel equivalent would be =[cell_reference], however I'm not sure how to do this in word. Is anyone able to advise how this would be done? I was told I can use a bookmark, but I've tried this and it's not working for me. Thanks in advance! Last edited by Charles Kenyon; 11-16-2015 at 08:15 AM. Reason: Mark as solved |
#2
|
||||
|
||||
What you are looking for is the Cross Reference field { REF BookmarkName } which reproduces the content of a bookmark. Note that REF fields don't update automatically so allow for this in the macro that writes to the bookmark.
e.g. Call the example code at http://www.gmayor.com/installing_macro.htm As for writing to bookmarks, see the FillBM function at http://www.gmayor.com/useful_vba_functions.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Cross reference is one way and will work in any Word version. If you and your users are upgraded to Word 2007 or above then mapped content controls could be an option. http://gregmaxey.com/word_tip_pages/..._controls.html
My Content Control Tools that you can download from that link makes using mapped CCs simple. |
Tags |
bookmark, placeholder, reference placeholder |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using 3 different fields, several times in same document but not en mass - should I use mail merge? | shoughton | Mail Merge | 1 | 06-24-2015 02:46 PM |
Mail merge placeholder placement in document | Old Dude | Mail Merge | 3 | 12-11-2014 07:30 PM |
SlideMaster: Date Placeholder, Footer Placeholder, Slide Number Placeholder? | tinfanide | PowerPoint | 1 | 04-05-2013 10:37 AM |
How do I refer to page numbers, when the numbers change as I prepare the document? | StevenD | Word | 5 | 11-29-2012 12:52 AM |
Copy the contents of a dcoument and paste it several times in a new document | Gerjanst | Word VBA | 0 | 06-30-2010 12:51 PM |