User Agents

Web browsers and everyday web tech, explained

Error Bookmark Not Defined: How to Fix It in Word

· 5 min read · Browsers

In this article
  1. How the Bookmark System Works
  2. Common Causes of the Error
  3. Step-by-Step Fixes
  4. Preventing Future Bookmark Errors
  5. Comparison: Bookmarks vs. Hyperlinks
  6. Frequently Asked Questions

To fix the "Error! Bookmark not defined" message in Microsoft Word, you must either restore the deleted bookmark that the cross-reference is pointing to or update the cross-reference to link to a new, existing bookmark. This error occurs when a field in your document attempts to reference a specific location or piece of text that has been deleted or renamed, breaking the underlying link.

How the Bookmark System Works

Microsoft Word uses a system of hidden markers called bookmarks to create dynamic links within a document. When you insert a Table of Contents, a cross-reference (e.g., "See page 12"), or a caption reference, Word does not simply type the text; it creates a Field Code. This code acts as a pointer that says, "Go find the text labeled 'Bookmark_A' and display its page number here."

As long as 'Bookmark_A' exists, the document looks perfect. However, if you highlight the text containing that bookmark and press delete, or if you overwrite the bookmarked area with new text, the pointer now leads to a void. The next time Word updates its fields—which happens during printing, saving to PDF, or manually pressing F9—it realizes the destination is gone and replaces the text with the "Error! Bookmark not defined" warning.

Common Causes of the Error

Understanding why this happens can help prevent it in large documents like theses, manuals, or legal contracts. The most frequent triggers include:

  • Accidental Deletion: Deleting a heading or a paragraph that was being referenced elsewhere in the document.
  • Overwriting Text: Selecting a bookmarked word and typing over it, which often removes the invisible bookmark tags.
  • Copy-Pasting Issues: Moving sections of a document from one file to another without bringing the associated bookmarks along.
  • Track Changes Conflicts: In some versions of Word, accepting or rejecting changes that involve bookmarked text can occasionally corrupt the reference link.
  • Incorrect Table of Contents Updates: Updating a TOC after headings have been deleted or moved significantly.

Step-by-Step Fixes

Depending on whether you want to restore the original data or simply fix the broken link, use one of the following methods.

Method 1: Undo and Restore

If the error appeared immediately after a deletion, the fastest fix is the Undo command. Press Ctrl + Z (Windows) or Cmd + Z (Mac) until the deleted text and its associated bookmark reappear. Once restored, right-click the error message and select "Update Field" to clear the warning.

Method 2: Re-creating the Bookmark

If the original text is gone but you know where the reference should point, you can manually create a new bookmark with the exact same name as the old one.

  1. Go to the Insert tab and click Bookmark.
  2. In the Bookmark name field, type the exact name of the missing bookmark. (Note: If you don't know the name, right-click the error message, select "Toggle Field Codes", and look for the name following the REF command).
  3. Place your cursor at the location where the bookmark should be.
  4. Click Add.
  5. Right-click the error message again and select Update Field.

Method 3: Re-linking the Cross-Reference

If the bookmark name is unknown or the structure of the document has changed, it is cleaner to simply create a new reference.

  1. Highlight the "Error! Bookmark not defined" text.
  2. Go to the References tab and select Cross-reference.
  3. Choose the Reference type (e.g., Heading, Figure, or Numbered item).
  4. Select the correct item from the list of existing headings or bookmarks.
  5. Click Insert to replace the error with the correct link.

Preventing Future Bookmark Errors

To avoid these errors in long-term projects, adopt a few habits that protect the integrity of your field codes.

  • Avoid Highlighting Over Bookmarks: When editing text that you know is referenced elsewhere, avoid selecting the entire paragraph. Instead, click inside the text and edit the words, leaving the boundaries of the paragraph intact.
  • Use Heading Styles: Instead of manual bookmarks, use Word's built-in Heading styles (Heading 1, Heading 2). Cross-references to headings are generally more stable than manual bookmarks.
  • Lock Fields Before Distribution: If you are sending a document to someone and don't want them to accidentally trigger field updates that might show errors, you can lock the fields. Press Ctrl + F11 to lock a selected field, preventing it from updating.
  • Regular Backups: Always save a version of your document before performing a massive "Find and Replace" operation, as these can inadvertently wipe out bookmarks.

It is common to confuse bookmarks with hyperlinks, but they serve different purposes in Word. A hyperlink is a path to a destination (either a website or a place in the document). A bookmark is the destination itself.

When you create a cross-reference, Word creates a bookmark at the destination and a hyperlink at the source. If you only use a standard hyperlink to a page number, the link may break if the text moves. However, a bookmark-based cross-reference is dynamic; if the bookmarked text moves from page 5 to page 10, the reference will automatically update to say "page 10" once the fields are refreshed.

Frequently Asked Questions

Why does the error only appear when I print the document?

Word is configured by default to update all fields before printing to ensure page numbers and tables of contents are accurate. If a bookmark was deleted while you were writing, you might not notice it on the screen, but the print command triggers the update, revealing the broken link.

Can I find all the broken bookmarks in my document at once?

Word does not have a built-in "Find all errors" button for bookmarks. However, you can use the Find tool (Ctrl + F) and search for the phrase "Error!" to jump to each instance of a broken reference throughout the document.

Does deleting a Table of Contents fix the error?

Deleting the Table of Contents (TOC) will remove the error messages within the TOC, but it will not fix broken cross-references located in the body of your text. If the TOC is showing the error, it means the heading it is trying to link to has been deleted or the style has been changed.

Will this error show up if I save the file as a PDF?

Yes. Because saving as a PDF usually triggers a field update (similar to printing), any "Bookmark not defined" errors will be baked into the final PDF. You must resolve the errors in the Word document before exporting to PDF.