Is it possible to rename multiple bookmarks in standard Word 97-2003 doc file? I just finished a 400 page document, in Word 2010, with several hundred bookmarks that must be renamed and I definitely don't want to go in and rename them manually. I found this Word add-in for enhancing the built-in Word Bookmark Dialog, but can't seem to get it to load properly into my document, if I can get it working it will solve my problem. Until then are there any other straightforward methods for accomplishing this? Maybe this can be accomplished using macros. Right now I'm looking to see if OpenOffice supports batch renaming of bookmarks in a docx file. Help is appreciated.
migrated from stackoverflow.com Nov 18 '11 at 22:31
This question came from our site for professional and enthusiast programmers.
You can do this with a VBA macro in Word. The below macro, which is taken from here (and discussed in greater detail on the Web page), will prepend "NEW_" to each existing bookmark name, but it can be adapted to rename the bookmarks with whatever conventions are desired.