Microsoft KB Archive/302865

= &quot;Error! No table of contents entries found&quot; when you build a table of contents =

Article ID: 302865

Article Last Modified on 9/26/2005

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q302865



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you try to build a table of contents from custom styles in Microsoft Word 2000 by using the \t switch, you may receive the following error message:

Error! No table of contents entries found.

For example, you may receive this error message when you use the following:

{TOC \h \z \t &quot;Heading 1,1,Heading 3, 3&quot; \n}



CAUSE
This problem occurs when the separator between the styles that are specified for the \t field option in the Table of Contents field is different from the list separator in your computer's regional settings.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, obtain the latest service pack for Microsoft Office 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

276367 How to obtain the latest Office 2000 service pack

After you install the update, add the following key to your registry to activate the change:

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options\UseAlternateTOCDelimiter (DWORD) 1

To do this procedure:

 Quit all Microsoft Windows programs before you edit the Windows registry. Click Start, and then click Run. In the Open box, type regedit, and then click OK. In Registry Editor, open the following registry key:

MyComputer\HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options

 With the Options key selected, on the Edit menu, point to New, and then click DWORD Value. Type UseAlternateTOCDelimiter, and then press ENTER.</li> Select UseAlternateTOCDelimiter, and then on the Edit menu, click Modify at the same time.</li> In the Value data box, type 1, and then click OK.</li> On the Registry menu, click Exit. Registry Editor automatically saves your changes.</li></ol>

<div class="workaround_section">

WORKAROUND
To work around this problem, use either of the following methods.

Method 1: Edit the Field to Use the Correct List Separator
<ol> Press ALT+F9 to display the field codes. The Table of Contents is represented by a field similar to the following:

{TOC \h \z \t &quot;Heading 1,1,Heading 3, 3&quot; \n}

In this field, the comma is used as the list separator. This is the default setting in the United States, but many other countries use the semicolon as the list separator.</li> Click Start, point to Settings, and then click Control Panel. Double-click Regional Options. On the Numbers tab, you can see which character is currently used as the list separator.</li> In the field code, replace the commas with the correct list separator. For the earlier example, the field looks similar the following:

{TOC \h \z \t &quot;Heading 1;1;Heading 3; 3&quot; \n}

</li> Press F9 to update the field.</li> Press ALT+F9 to switch from the display of field codes to field results.</li></ol>

Method 2: Change the List Separator in Regional Options
<ol> Press ALT+F9 to display field codes. The Table of Contents is represented by a field similar to the following:

{TOC \h \z \t &quot;Heading 1,1,Heading 3, 3&quot; \n}

In this field, the comma is used as the list separator. This is the default setting in the United States, but many other countries use the semicolon as the list separator.</li> Click Start, point to Settings, and then click Control Panel. Double-click Regional Options. On the Numbers tab, you can see which character is currently used as the list separator.</li> Change the list separator to the character that is used in the field, and then click OK.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was first corrected in the Word 2000 Update: April 25, 2002.

<div class="moreinformation_section">

MORE INFORMATION
The AlternateTOCDelimiter registry key causes Microsoft Word to interpret the table of contents delimiter based on the language formatting of the surrounding text instead of from Control Panel. Some Word users who share documents in multiple locales may prefer to use this setting. For example, a table of contents that is included in a document with German language format uses a semicolon as a delimiter on an English operating system instead of a comma. All users of this German language document can update the contents of the table of contents regardless of their computer's operating system language as long as they have the UseAlternateTOCDelimiter registry key set.

Note that the Insert Table of Contents functionality still uses the delimiter as it is set in Control Panel when the table of contents is originally created. The creator of the table of contents must manually set the delimiter to the appropriate delimiter for the language of the document before sharing it with other users.

Additional query words: toc

Keywords: kbhotfixserver kbqfe kbhotfixserver kbqfe kboffice2000sp3fix kbbug kbfix KB302865

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.