Microsoft KB Archive/145639

= Can't Build TOC or Index in RTF Document =

Article ID: 145639

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Word 6.0 for Macintosh
 * Microsoft Word 6.01 for Macintosh
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 6.0 Standard Edition

-



This article was previously published under Q145639



SYMPTOMS
When you attempt to insert or update a table of contents in a document that was created in Word, saved in Rich Text Format (RTF), and then reopened in Word, any of the following may occur:

If you insert a table of contents
Word does not find TC (Table of Contents Entry) fields for the table of contents.

If you update the table of contents (the entire table)
The message "Error! No table of contents entries found" appears in place of the table of contents

-or-

The only table of contents entries that appear are those that were created the RTF document was opened

If you attempt to insert or update an index in the same document
You receive one of the following messages:

Error! No index entries found.

-or-

Word found no XE (Index Entry) fields for the index.

NOTE: If you update an existing table of contents and choose to update the page numbers only, the page numbers are updated correctly.



CAUSE
This problem occurs if you create TC or XE fields manually (by pressing CONTROL+F9 or COMMAND+F9 and typing the TC or XE field code instructions) when the Change Straight Quotes To Smart Quotes option is turned on.

When you reopen the RTF file, Word adds an extra set of quotation marks within the TC and XE fields. Word does this wherever it sees smart (curly) quotes.

If straight quotation marks surround the information in the TC and XE fields, Word does not add any quotation marks.



STATUS
Microsoft has confirmed this to be a problem in the products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



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

Method 1: Disable the Change Straight Quotes To Smart Quotes option before you enter TC or XE fields.

Word version 6.0 (Windows and Macintosh):

 On the Tools menu, click AutoCorrect. Clear the Change 'Straight Quotes' To 'Smart Quotes' check box. Click OK.

Word version 7.0:

 On the Tools menu, click Options. Select the AutoFormat tab.</li> In the Replace As You Type area, clear the Straight Quotes with 'Smart Quotes' check box.</li> Click OK.</li></ol>

Method 2: If you have already created the document, use this method to search for the double sets of quotation marks and replace them with a single set:

 On the Tools menu, click Options.</li> Select the View tab.</li> In the Show area, select Field Codes.</li> In the Nonprinting Characters area, select Hidden Text.</li> Click OK.

You should now be able to see the TC and XE fields.</li> On the Edit menu, click Replace.</li> In the Find What box, type the following (these are the ANSI codes of the straight quote and left smart quote):

^0034^0147

</li> In the Replace With box, type the following:

^0034

</li> Click Replace All.

NOTE: If you entered a double set of quotation marks in step g, skip steps j-l.</li> After the replacements have been made, erase the text in the Find What box and type the following (these are the ANSI codes of the right smart quote and the straight quote):

^0148^0034

</li> In the Replace With box, type the following:

^0034

</li> Click Replace All.

You can now build the table of contents and index successfully.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
This problem also occurs when you convert your document to other formats, such as Word for Windows 2.x. During the conversion process Word first converts the document to Rich Text Format and then converts it to the new foreign format.

Additional query words: textconv prb 6.00a 6.00c macword winword word6 word7 word95 wordnt ntword toc convert converted converts converting conversion translate translated translates translating translation

Keywords: kbconversion KB145639

-

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

© Microsoft Corporation. All rights reserved.