Hidden bookmarks remain after you remove \h switch from TOC field in Word


Symptoms


Hidden bookmarks may not be removed as expected when you update the table of contents in Microsoft Word. This problem occurs when the following conditions are true:
  • You delete the table of contents (TOC).
  • You delete the \h (hyperlink) switch from the table of contents (TOC) field.

Cause


When Word inserts a table of contents, Word adds the \h switch by default. The \h switch inserts table of contents entries as hyperlinks when the document is viewed as an HTML page. The \h switch also generates hidden bookmarks as targets in the document for the table of contents hyperlinks.

However, when the \h switch is removed from the TOC field, or if the table of contents is deleted, the hidden bookmarks are not removed from the document.

Note To view the contents of the TOC field, press ALT+F9.

Workaround


To work around this problem, manually remove the hidden bookmarks. To do this, follow these steps:
  1. In Microsoft Word 2002 or in Microsoft Office Word 2003, click Bookmarks on the Insert menu.

    In Microsoft Office Word 2007, click the Insert tab, and then click Bookmarks in the Links group.
  2. Click to select the Hidden bookmarks check box to view the list of hidden bookmarks.
  3. In the list of bookmarks, click the bookmark that you want to remove, and then click Delete.
  4. Repeat Step 3 for each bookmark that you want to remove.
  5. Click Close.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.