A macro to add, delete, and find hidden and non-hidden bookmarks in Word (184041)
The information in this article applies to:
- Microsoft Office Word 2003
- Microsoft Word 2002
- Microsoft Word 2000
- Microsoft Word 97 for Windows
This article was previously published under Q184041 SUMMARY
The following sample macros can be used to add, delete, and find hidden and
non-hidden bookmarks in Word for Windows documents using Visual Basic for
Applications.
WARNING: Microsoft Word uses hidden bookmarks for table of contents
entries, cross-references, and captions. After stripping the hidden
bookmarks from a document with cross-references, and then updating fields,
all the references are lost. In their place you get one of the following
error messages: "Error! Reference source not found" or "Error! Bookmark not
defined."
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
201945
The Add button is unavailable in the Bookmark dialog box
Modification Type: | Minor | Last Reviewed: | 9/27/2005 |
---|
Keywords: | kbconversion kbconvert kbhowto kbmacroexample KB184041 |
---|
|