User Agents

Web browsers and everyday web tech, explained

How to Fix Error Bookmark Not Defined in Word

· 7 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The "Error! Bookmark not defined" message in Microsoft Word occurs when a cross-reference, table of contents, or hyperlink points to a bookmark that has been deleted, renamed, or moved. To remove or fix this error, you must either restore the missing bookmark, update the field to point to a new location, or manually delete the broken reference. This guide provides a comprehensive walkthrough for identifying the source of the break and restoring the integrity of your document's internal linking system.

What You'll Need

  • A computer with Microsoft Word installed (Windows or macOS).
  • The document containing the error messages.
  • A backup copy of the document (recommended before performing bulk field updates).

Step-by-Step

  1. Identify the Broken Reference: Locate the text that says "Error! Bookmark not defined." This text is actually a "field code." To see the underlying code, you can press Alt + F9 (Windows) or Option + F9 (Mac). This will change the error message into a string of code, such as { REF _Ref123456789 \r \p }. This helps you identify exactly which bookmark the document is searching for.
  2. Determine the Cause: Before fixing the error, decide if the information that was linked is still in the document. If you deleted a heading or a specific paragraph that was being referenced elsewhere, the link is broken because the destination no longer exists. If you simply moved the text to a different page, the bookmark might still exist but the field needs to be refreshed.
  3. Method 1: Re-creating the Bookmark (The Best Fix): If you want the reference to work again, you must create a new bookmark at the destination.
    • Navigate to the place in the document where the information should be.
    • Highlight the word or phrase you want to link to.
    • Go to the Insert tab on the Ribbon.
    • Click on Bookmark in the Links group.
    • Give the bookmark a unique name (no spaces allowed) and click Add.
  4. Method 2: Updating the Cross-Reference: Once the bookmark is recreated, you need to link the error message to this new bookmark.
    • Highlight the "Error! Bookmark not defined" text.
    • Go to the Insert tab and select Cross-reference.
    • In the dialog box, select the "Reference type" (e.g., Heading, Bookmark, or Numbered item).
    • Choose the correct item from the list and click Insert. This replaces the error message with a functioning link.
  5. Method 3: Manually Deleting the Error: If the referenced content is gone and no longer needed, the simplest solution is to delete the field.
    • Click directly on the error message.
    • Press the Delete or Backspace key on your keyboard.
    • Note: If the error is inside a Table of Contents, do not delete it manually in the TOC; instead, delete the heading in the main body of the text and then update the TOC.
  6. Method 4: Bulk Updating Fields: If you have multiple errors throughout a large document, you can try to update all fields at once.
    • Press Ctrl + A (Windows) or Cmd + A (Mac) to select the entire document.
    • Right-click on any highlighted area and select Update Field.
    • Alternatively, press the F9 key. If the bookmarks were simply moved and not deleted, this will resolve the errors instantly.

Common Mistakes

One of the most frequent mistakes is attempting to fix the error by simply typing over the text. Because the error is a field, simply typing "Chapter 1" over the error message doesn't remove the underlying broken link; it just hides it. If you update the fields later, the error may reappear. You must either delete the field entirely or properly re-link it using the Cross-reference tool.

Another common error is naming bookmarks with spaces. Word does not allow spaces in bookmark names. If you try to name a bookmark "Chapter One," Word may either reject it or create an unpredictable name, leading to further "Bookmark not defined" errors when you try to reference it. Always use underscores (e.g., Chapter_One) or CamelCase (e.g., ChapterOne).

Users also often forget to update their Table of Contents (TOC) after fixing bookmarks. Since the TOC is essentially a collection of bookmarks and references, fixing a bookmark in the body of the text does not automatically fix the TOC. You must right-click the TOC and select "Update Field" and then "Update entire table" to synchronize the changes.

Tips

To prevent these errors in the future, enable the visibility of bookmarks. Go to File > Options > Advanced. Under the Show document content section, check the box for Show bookmarks. This will place small grey brackets [ ] around bookmarked text. While these brackets don't print, they provide a visual warning so you don't accidentally delete a bookmarked section of text.

When working with very long documents, use a consistent naming convention for your bookmarks. Instead of using default names like _Ref12345678, name them logically, such as Section1_Intro or Table_Financials_2023. This makes it significantly easier to identify which reference is broken when the "Bookmark not defined" error appears.

If you are collaborating with others, warn them not to delete headings or paragraphs that are used as reference points. In a shared environment, it is common for one user to "clean up" a document by deleting what looks like redundant text, only to break dozens of cross-references throughout the rest of the file.

Troubleshooting

The error persists after I recreated the bookmark: This usually happens because the cross-reference is still looking for the old, deleted bookmark ID. You cannot simply name a new bookmark the same as the old one and expect the link to automatically reconnect if the internal ID was generated by Word. You must delete the error message and insert a new Cross-reference to the new bookmark.

I cannot find where the bookmark was located: If you have a massive document and don't know where the reference was supposed to point, use the Alt + F9 trick to see the field code. Look at the name inside the curly brackets. Then, go to Insert > Bookmark. The list of existing bookmarks will show you what is currently available. If the name from the field code isn't in that list, the destination is definitely gone.

The error appears only when printing: Word often updates all fields automatically during the print process. This is why a document may look perfect on screen but suddenly show "Error! Bookmark not defined" in the printed version or the PDF export. To fix this, perform a Ctrl + A and F9 update before printing to catch all errors while you are still in the editing phase.

The Table of Contents is full of these errors: This happens when headings are deleted or formatted incorrectly. Ensure that your headings are using the actual "Heading 1," "Heading 2," etc., styles from the Home tab. If you manually bold and enlarge text to look like a heading without using the Style gallery, the TOC cannot create a proper bookmark, resulting in the error.

Frequently Asked Questions

Why does this error happen if I didn't delete anything?

This can happen if you copy and paste text from one document to another. The cross-reference comes with the text, but the destination bookmark stays in the original document. Since the bookmark doesn't exist in the new file, Word displays the error.

Can I disable the automatic updating of fields?

You can prevent Word from updating fields during print by going to File > Options > Display and unchecking "Update fields before printing," though this is generally not recommended as it may lead to inaccurate page numbers in your TOC.

Does this error affect the final PDF export?

Yes, because PDF export triggers a field update. Any "Bookmark not defined" errors that were hidden in the Word document will be visible in the final PDF.

Is there a way to find all these errors at once?

You can use the Find and Replace tool. Press Ctrl + H, type "Error! Bookmark not defined" in the Find what box, and click Find Next to jump through every instance of the error in your document.

Will deleting the error message delete the text it was referring to?

No. Deleting the error message only removes the link (the reference). It does not affect the actual content or the bookmark at the destination; it only removes the "pointer" that was trying to get there.