书签用于超链接或引用您以后要使用的特定位置或部分。
虽然它们很有用,但书签通常会导致诸如“错误!书签未定义”的问题,许多Microsoft Office用户都遇到过。
该错误意味着引用的书签不再有效,通常在以下情况下触发:
- Word使用隐藏的自动书签系统将目录中的主题链接到它们各自的页码(page numbers)。
- 目录中的书签丢失、过时、损坏或损坏。
- 您正在将 Doc 文件转换为 PDF(converting a Doc file to PDF)。
幸运的是,您可以通过确保书签存在或完全删除交叉引用字段来绕过错误。
本指南列出了一些可能的解决方案来帮助您解决Word(Word)中的书签未定义错误。
What to Do When You Get “Error! Bookmark Not Defined” in Word
在修复书签未定义错误之前,请检查是否可以查看书签,因为默认的Word设置不显示书签。
- 打开 Word,选择文件(File)>选项(Options)。
- 选择高级(Advanced)选项卡并向下滚动到显示文档(Show document) 内容(content)。
- 选中显示书签(Show bookmarks)框并选择确定(OK),以便您可以在Word中查看书签。
有了这个,请尝试以下解决方案来修复Word中的错误。
取消链接目录中的字段(Unlink Fields in Your Table of Contents)
如果您仍然看到“错误(Error)!书签未定义”在您的Word文档中,您可以取消链接目录(table of contents)中的字段并查看错误是否消失。
- 在Word 选项(Word Options)中启用显示书签(Show Bookmarks)设置后,突出显示目录。
- 按键盘上的Ctrl + Shift + F9键取消链接字段并检查错误是否仍然存在。
使用撤消命令(Use the Undo Command)
Windows中的“撤消(Undo)”命令可帮助您撤销之前(reverse an earlier action)可能对Word文档执行的操作。
如果在您使用自动目录时出现错误书签未定义,则表中的一个或多个字段可能包含指向书签的断开链接(broken link)。
您也可能会在生成表格后立即看到错误,然后才能保存文档。在这种情况下,您可以使用撤消(Undo)命令立即恢复原始文本。
- 按键盘上的 Ctrl + Z。
- 或者,从屏幕顶部 Word的功能区菜单中选择(Ribbon menu)撤消(Undo)图标。
- 撤消操作后,修复损坏的书签链接,然后保存文档。
替换缺少的书签(Replace Missing Bookmarks)
如果您对文档进行了一些新的更改,或者它没有使用Word(Word)中的内置标题样式,您最终可能会遇到错误!书签未定义问题。
您可以将目录转换为半手动列表并替换丢失的书签。
- 转到目录部分,右键单击包含错误的条目并选择Toggle Field Codes。
- 域代码(Field Codes)将出现在书签后面,但书签不再存在于文档中,这就是您收到错误的原因。您会注意到该字段当前指向PAGEREF/HYPERLINK, the name of the bookmark的名称(PAGEREF是该字段最初指向的书签的名称)。
- 选择插入(Insert)>链接(Links )>书签(Bookmark)并使用旧名称创建一个新书签。或者,您可以完全删除该字段并重新引用新部分(make a new reference to a new section)。
- 修复每个丢失或损坏的书签后,请检查在您尝试使用文档或将其转换为PDF格式时是否仍然出现错误。
注意(Note):如果您看到PAGEREF/HYPERLINK “Bookmark Name”条目,则表示该书签是手动插入的。如果您收到错误,例如PAGEREF/HYPERLINK Ref364868613, 它指向由交叉引用对话框创建的隐藏书签。
强制更新目录(Force Update the Table of Contents)
如果您仍然看到错误!即使在识别和修复损坏的条目后,您的Word文档上也没有定义书签,您可以按F9强制更新目录。
F9 键(F9 key)用于更新Word中的字段。它的工作方式与右键单击字段并选择更新字段(Update Field)选项相同。
删除任何损坏的书签链接后,使用 F9 应该可以正常更新目录。
将自动目录转换为静态文本(Convert the Automated Table of Contents to Static Text)
如果您不想修复目录中每个损坏的链接条目,可以将目录转换为常规文本。这样做可以消除错误并允许您使用自己的文本覆盖这些条目。
- 突出显示目录。
- 按Ctrl + Shift + F9更新字段,将条目转换为常规文本,然后根据需要进行编辑。
- 或者,按Ctrl + F11锁定目录字段,使其无法编辑或更新。在执行此操作之前,请将目录与其引用的页面进行比较,以确保一切正确。
Get Rid of the Error! Bookmark Not Defined in Word
我们希望本指南中的解决方案可以帮助您解决“错误!Word中的书签未定义”问题。
如需更多有用的Microsoft Word 提示和技巧(Microsoft Word tips and tricks),请参阅我们的故障排除指南,了解如何修复 Word 无响应(how to fix Word not responding)、恢复 Word 文档(recover a Word document)或如何add/remove comments in Word。
How to Fix Bookmark Not Defined Error in Word
Bookmarks are used to hyperlink or reference specific locations or sections that you want to use later.
While they’re useful, bookmarks can often cause issues such as the “Error! bookmark not defined” issue, which many Microsoft Office users have encountered.
The error means that the bookmark referenced is no longer valid, and is usually triggered when:
- Word uses a hidden, automated bookmarking system to link the topics of your table of contents to their respective page numbers.
- The table of contents has missing, outdated, broken or corrupted bookmarks.
- You’re converting a Doc file to PDF.
Fortunately, you can get around the error by ensuring that the bookmark exists or deleting the cross-reference field altogether.
This guide lists some possible solutions to help you resolve the bookmark not defined error in Word.
What to Do When You Get “Error! Bookmark Not Defined” in Word
Before you can fix the bookmark not defined error, check whether you can view the bookmarks because the default Word settings don’t display bookmarks.
- Open Word, select File > Options.
- Select the Advanced tab and scroll down to Show document content.
- Check the Show bookmarks box and select OK so that you can view the bookmarks in Word.
With that out of the way, try the solutions below to fix the error in Word.
Unlink Fields in Your Table of Contents
If you still see “Error! bookmark not defined” on your Word document, you can unlink the fields in the table of contents and see whether the error disappears.
- With the Show Bookmarks setting enabled in Word Options, highlight the table of contents.
- Press Ctrl + Shift + F9 keys on your keyboard to unlink the fields and check whether the error is still there or not.
Use the Undo Command
The Undo command in Windows helps you reverse an earlier action you may have performed on your Word document.
If the error bookmark not defined appears while you’re using an automated table of contents, one or more of the fields in the table may contain a broken link that leads to a bookmark.
You may also see the error immediately after generating the table before you can save your document. In this case, you can use the Undo command to restore the original text immediately.
- Press Ctrl + Z on your keyboard.
- Alternatively, select the Undo icon from the Ribbon menu in Word at the top of the screen.
- Once the action is reversed, fix the broken bookmark links and then save your document.
Replace Missing Bookmarks
If you’ve made some new changes on your document or it doesn’t use the built-in heading styles in Word, you may end up with the Error! bookmark not defined problem.
You can transform the table of contents into a semi-manual listing and replace missing bookmarks.
- Go to the table of contents section, right-click the entry that contains the error and select Toggle Field Codes.
- The Field Codes will appear behind the bookmark, but the bookmark no longer exists in the document, which is why you’re getting the error. You’ll notice that the field currently points to PAGEREF/HYPERLINK, the name of the bookmark (PAGEREF is the name of the bookmark that the field originally pointed to).
- Select Insert > Links > Bookmark and create a new bookmark with the old name. Alternatively, you can delete the field altogether and make a new reference to a new section.
- Once you repair every missing or corrupt bookmark, check whether the error still appears when you’re trying to use the document or convert it to PDF format.
Note: If you see a PAGEREF/HYPERLINK “Bookmark Name” entry, it means the bookmark was inserted manually. If you get an error, for example PAGEREF/HYPERLINK Ref364868613, it points to a hidden bookmark created by a cross-reference dialog.
Force Update the Table of Contents
If you’re still seeing Error! bookmark not defined on your Word document even after identifying and repairing broken entries, you can press F9 to force update the table of contents.
The F9 key is used to update a field in Word. It works the same way as right-clicking a field and selecting the Update Field option.
Using F9 should get the table of contents to update normally after you’ve removed any broken bookmark links.
Convert the Automated Table of Contents to Static Text
If you don’t want to fix every broken link entry in your table of contents, you can convert the table of contents to regular text. Doing this eliminates the error and allows you to override those entries with your own text.
- Highlight the table of contents.
- Press Ctrl + Shift + F9 to update the fields, transform the entries into regular text and then edit them as you wish.
- Alternatively, press Ctrl + F11 to lock the table of contents field so that it can’t be edited or updated. Before doing this, compare the table of contents with the pages it references just to be sure that everything is correct.
Get Rid of the Error! Bookmark Not Defined in Word
We hope the solutions in this guide helped you resolve the “Error! bookmark not defined” issue in Word.
For more helpful Microsoft Word tips and tricks, turn to our troubleshooting guides on how to fix Word not responding, recover a Word document, or how to add/remove comments in Word.