WD6X: X of Y Page Numbering Scheme for Sections Is Not Correct

Last reviewed: March 11, 1998
Article ID: Q182337
The information in this article applies to:
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a

SYMPTOMS

In Microsoft Word 6.x for the Macintosh, if you use the SectionPages and Page fields in a header or footer to create an X (page) of Y (total number of pages in a section) numbering scheme, the page numbers do not coincide with their appropriate sections.

CAUSE

The SectionPages field returns the total number of pages in a section. However, in Microsoft Word 6.x, the SectionPages field does not return the correct number of pages in the section if you insert it in the header or footer.

WORKAROUND

You can use the PageRef field to obtain the number of pages in the current section, and create an X of Y numbering scheme, in the following format:

   <Page Number> of <Total Number of Pages in Section>

Page numbering starts at 1 for each section, and the PageRef field yields the number of pages in each section. Page numbering appears as "Page X of Y" on each page, where X is the current page in the current section, and Y is the number of pages in the current section.

To create an X of Y numbering scheme, follow these steps:

  1. Repeat the following instructions in each section of your document to insert a bookmark at the end of the section:

    a. Select some text at the end of the last page of the section.

    b. On the Edit menu, click Bookmark.

    c. Type a Bookmark Name, and then click Add.

  2. On the View menu, click Header And Footer. If you want the page numbers in the header, place the insertion point at the proper location. If you want the page numbers in the footer, on the Header and Footer toolbar, click the Switch Between Header and Footer button and then place the insertion point at the proper location.

  3. Type the word "Page" (without the quotation marks) and then press the SPACEBAR once.

  4. On the Header and Footer toolbar, click the Page Numbers button.

  5. If the number is other than 1, on the Insert menu, click Page Numbers and then click Format. Under Page Numbering, select Start At, make sure a 1 appears in the list box, and then click OK twice.

  6. Make sure your insertion point is to the right of the number 1 and then press the SPACEBAR once, type the word "or" (without the quotation marks), and then press the SPACEBAR one more time.

  7. On the Insert menu, click Field. and then follow these steps:

        a. Under Categories, select All.
    

        b. Under Field Names, select PageRef.
    

        c. Under Field Codes, click after PAGEREF and type the name of the
           bookmark you inserted to mark the end of the current section.
    

  8. Click OK.

  9. On the Header And Footer toolbar, click Close.

NOTE: To turn field codes on and off, press OPTION+F9.

With field codes turned on, the header or footer appears as follows:

   { PAGE  } of { PAGEREF BookmarkName }

where BookmarkName is the name of the bookmark you inserted in step 7.

With field codes turned off, if the current section contains 11 pages, for example, the following appears in the header or footer on page 3:

   3 of 11

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Word 98 Macintosh Edition.

MORE INFORMATION

For additional information about page numbering schemes, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q155199
   TITLE     : WD: How to Create Two Page Numbering Schemes in One Document

REFERENCES

For online information about the PAGEREF field, double-click the Help button on the Standard toolbar, and then type "pageref" (without the quotation marks). Click Show Topics and double-click the PAGEREF field topic.


Additional query words: wrong incorrect word6 match don't macword6
Keywords : word6 kbdta
Version : MACINTOSH:6.0,6.0.1,6.0.1a
Platform : MACINTOSH
Issue type : kbbug
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.