Microsoft KB Archive/28777

Word: Table of Contents Entries Do Not Have Page Numbers

PSS ID Number: Q28777 Article last modified on 03-07-1997

=
========================================================= 3.00 3.01 3.02 4.00 5.00 5.10 MACINTOSH kbusage

= SYMPTOMS =

In Microsoft Word for the Macintosh, when you create a table of contents (TOC) using “.c.” markers, some lines in the table of contents may not display a page number for the entry even when the Show Page Numbers option is selected in the Table Of Contents dialog box (on the Insert menu in Word 5.0, and the Utilities menu in Word 4.0).

For example, if the entry .c.Chapter 1:Discovery; is used (where the “.c.” and the “;” are formatted as hidden to denote them as TOC codes), when the TOC is compiled, the expected results are:

Chapter 1:Discovery……………………………………..1

Instead, the entry resembles the following:

Chapter 1 Discovery………………………………………….1

= CAUSE =

This problem occurs because a colon has been placed in the entry. The colon in the TOC entry indicates a subheading. If the colon appears immediately before the TOC end-of-entry code, which is either a semicolon formatted as hidden text or a paragraph return, there is no subheading and the page number will not print.

= STATUS =

Microsoft has confirmed this to be a problem in Word for the Macintosh versions 5.0, 5.1. This problem was corrected in Word for the Macintosh version 6.0.

= WORKAROUND =


 * 1) From the Edit menu, choose Replace. (In Word 4.0, choose Change from the Utilities menu; in Word 3.0x, choose Change from the Search menu.)
 * 2) In the Find What box, enter a colon.
 * 3) In the Replace With box (Change To in 4.0 and 3.0x), enter a special character or sequence of characters to temporarily represent the colon (for example, “@@@”).
 * 4) Click the Find Next button (Start Search in 4.0 and 3.0x) and click the Replace button (Change in 4.0 and 3.0x) for each colon that is to be a part of a TOC entry. Close the Change dialog box after all the colons have been replaced.
 * 5) From the Insert menu (Utilities menu in 4.0 and Document menu in 3.0x), choose Table Of Contents and create the table of contents as usual.
 * 6) From the Edit menu, choose Replace. (In Word 4.0, choose Change from the Utilities menu; in Word 3.0x, choose Change from the Search menu.)
 * 7) In the Find What box, enter the same special character or sequence of characters you used to temporarily represent the colon in step 3, above (in this example, “@@@”).
 * 8) In the Replace With box (Change To in 4.0 and 3.0x), enter a colon.
 * 9) Click the Replace All button (Change All in 4.0 and 3.0x).

For more information about creating a table of contents in Word version 5.0, see pages 538-552 of the “User’s Guide to Microsoft Word” version 5.0 manual.

For more information about creating a table of contents in Word version 4.00, see pages 355-360 of the “Reference to Microsoft Word” version 4.0 manual.

For more information about creating a table of contents in Word versions 3.0x, see pages 366-375 of the “Reference to Microsoft Word” version 3.0 manual.

KBCategory: kbusage KBSubCategory: kbformat Additional reference words: missing 3.0 3.00 3.01 3.02 4.00 5.00 5.10 macword5 macword ====================================================================== ============================================================================= Copyright Microsoft Corporation 1997.