I often use bookmarks in Word in order to create technical documents with internal links to citations and commonly used information that needs to be consistent throughout the document. You can create them by selecting the text and then going to the menu Insert
-> Links
-> Bookmark
and assigning a name, then going to Insert
-> Links
-> Citations
and selecting the bookmark to insert. This will then insert the text of that bookmark elsewhere in the document.
As an example of why I do this: I often have a front page listing the document state and that information is then repeated in the footer, using a bookmark I can set up a link to that text and then simply insert that link in the footer and it will update automatically whenever I go to the print preview or update all fields in the document. This way I can avoid doing a search and replace and just know that the correct text will be updated in the correct places.
Now lets say I have a bookmark that I've just roughly named, just to get it into place:
There is no right-click to rename a bookmark and I cannot find any document property that will let me amend it.
I am able to insert a NEW bookmark by selecting the same text and then deleting the old one but then you get this:
You then have to right click the field and point it back at the (now effectively renamed) bookmark.
This isn't completely usable, especially in a large document where this bookmark is used multiple times.
I have Googled around and seen several VBA scripts on the web such as in this question but as they effectively create a new boomark and delete the old one they create the same problem as above and are less than ideal.
Is there a simpler or more effective way to rename bookmarks in Word documents? Or am I possibly using the Wrong Tool™ for this job?
Best Answer
Is there a simpler or more effective way to rename bookmarks in Word documents?
There is no rename function built-in to Word. There are a couple of options to work around this lack:
Use an Add-in.
Use VBA.
Add-in Solution
Use the Bookmark Tool Add-In
...
Source Bookmark Tool Add-In
VBA solution
Source Change the "name" of a bookmark not the text of it, with an additional loop to run through the fields in the document to change any that might be referencing the bookmark being renamed.
Care should be taken using this script. For example renaming any bookmarks that are simply named "REF" (or an upper or lower case variant of such) will break ALL references in amusing and unexpected ways. This is meant as an example and rough fix only.
If you want to batch rename multiple bookmarks in one go see Is there a simpler or more effective way to rename bookmarks in Word documents? which also includes sample VBA code.