I have a document with a large glossary in Word 2010 which I would like to link to when those terms are referenced in the document. However, it's time consuming and repetitive to create a bookmark for each glossary term. Is there a way to create the bookmarks automatically or en masse?
-
@CharlieRB Doing it manually, and searching Google.– C. RossApr 11, 2013 at 19:40
-
How are you linking them? Does every instance of each word throughout the document need to be linked? Are you comfortable with VBA?– CharlieRBApr 11, 2013 at 19:48
-
@CharlieRB I can link them manually, I don't mind that, and yes I know VBA, but mainly for Access and Excel.– C. RossApr 11, 2013 at 20:37
-
See Also: Generate bookmarks in Word 2010 programmatically, with the header name as the bookmark name– C. RossApr 11, 2013 at 21:12
-
You don't want to generate bookmarks for every word, rather bookmark each word in the glossary, then using VBA to create a link to the that bookmark at each instance of the word throughout the document. I will post an answer if I can get it to do what I am thinking.– CharlieRBApr 12, 2013 at 11:33
Add a comment
|
1 Answer
Don't know why I didn't think of this before. This is a simple solution using Find & Replace
which I think will work for you.
- Highlight the word in the glossary.
- Create a bookmark for that word.
- With the bookmarked word highlighted, press Ctrl + c.
- Open the Find & Replace window (Ctrl + h)
- For the
Find what:
if it's not already populated, add the word. - For the
Replace with:
type^c
. - Click Find Next so it will find the first instance of the word. If it asks to start at the beginning of the document select Yes.
- For each instance of the word, choose to replace it. (If you choose to use Replace All, keep in mind it will create a link if it find the word as part of another word.)
- Repeat this process for each word in the glossary.
-
-
Sorry, I misunderstood because I don't see know how any macro or VBA would know what word to create a bookmark with. So, I thought you meant automate linking to them. Apr 12, 2013 at 15:33