WD2000: "Error! Not a valid heading level range" Updating a Word 2000 Table of Contents in Word 97

ID: Q220520


The information in this article applies to:


SYMPTOMS

When you update a table of contents in a Word 2000 document opened in Microsoft Word 97 for Windows, the following error message may appear in place of the table of contents:

Error! Not a valid heading level range.

NOTE: To update a table of contents, select the table of contents and then press F9.


CAUSE

The \o switch instructs the TOC field to use heading levels to build the table of contents. When the table of contents is inserted (on the Insert menu, click Indexes and Tables) and all nine heading levels are selected, Word does not include the parameters with the \o option as part of the field. However, if fewer levels are selected (for example, eight levels), Word includes the levels as part of the \o switch.


WORKAROUND

Modify the \o switch in the TOC field to include all nine heading levels, using the following steps:

  1. To show the table of contents field codes, do one of the following:



  2. Modify the TOC field to include the heading levels. When you show the field codes, the TOC field may appear as the following example:
    {TOC \o \h \z}
    Add the heading levels as in the following example:


  3. {TOC \o "1-9" \h \z}
  4. With the insertion point within the field, press F9 to update the table of contents.


  5. Press ALT+F9 to turn the field codes off and display the table of contents.


For more information about other switches you can use with the table of contents (TOC) field, click Microsoft Word Help on the Help menu, type "TOC field code" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words:


Keywords          : kbdta wd2000 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 13, 1999