WD2000: How to Create Two Page Numbering Schemes in One Document

ID: Q212313


The information in this article applies to:
  • Microsoft Word 2000


SUMMARY

Word does not provide a built-in method for applying two different page numbering schemes in one document. This article describes how to create one page numbering scheme for the entire document and another scheme for each section of the document.

For example, a 10-page document has three sections with the following number of pages in each section:

4 pages in section 1 (physical pages 1-4)
2 pages in section 2 (physical pages 5-6)
4 pages in section 3 (physical pages 7-10)
Using the method below, you can create two page numbering schemes to look like the following:

The header displays the numbering scheme of:
<Page Number> of <Total Number of Pages in Section>
The footer displays the numbering scheme of:
<Total number of pages in the document>
So, on page 3 of section 1 (the third physical page of the total document), the header displays Page 3 of 4, and the footer displays 3. On page 2 of section 3 (the eighth physical page of the total document), the header displays Page 2 of 4, and the footer displays 8.


MORE INFORMATION

NOTE: This process assumes that you have a document with multiple sections, and that you are familiar with inserting field codes.

To create a numbering scheme that uses consecutive numbering throughout the document and a second numbering scheme that numbers each section beginning at 1, use either of the following methods.

Method 1: Use SEQ Fields

  1. Place the following two field codes on the first page of the document:


  2. 
    {SEQ variable1 \h \r {SectionPages} }
    
    {SEQ variable2 \h \r0} 
    NOTES:

    • The \r is followed by the number zero, not the letter "O".


    • The sequence fields include the \h switch, which formats the fields as hidden. Although you can display hidden text by clicking the Show/Hide button on the Standard toolbar, you should turn hidden text off before you print, because hidden text affects page breaks and can result in incorrect page numbering.


  3. Place the following field codes at the beginning of each section after the first section:


  4. 
    {SEQ variable2 \h \r {={SEQ variable1 \c} } }
    
    {SEQ variable1 \h \r {={SectionPages}+{SEQ variable2 \c} } } 
  5. Position your insertion point at the top of the document. On the View menu, click Header and Footer.


  6. In the header, position your insertion point where you want the page number, type the word Page and a space, and then click Insert Page Number on the Header and Footer toolbar.


  7. On the Insert menu, click Page Numbers, and then click Format.


  8. Under Page Numbering, click Start at (1 should appear in the Start at box).


  9. Click OK to close the Page Number Format dialog box.


  10. Click Close to close the Page Numbers dialog box.


  11. Position the insertion point after the Page field, type of (include a space before and after the word "of"), and then on the Insert menu, click Field. Under Categories, click (All). Under Field Names, click SectionPages, and then click OK.


  12. Click Show Next on the Header and Footer toolbar.

    NOTE: You should see Header-Section 2 in the header area of the document.

    On the Insert menu, click Page Numbers, and then click Format. Under Page Numbering, click Start at (1 should appear in the Start at box).


  13. Click OK to close the Page Number Format dialog box.


  14. Click Close to close the Page Numbers dialog box.


  15. Repeat steps 10-12 for each section of your document.


  16. Click Show Previous on the Header and Footer toolbar until it displays Header-Section 1 in the Header section of the document. Click the Switch Between Header and Footer button on the Header and Footer toolbar.

    NOTE: You should see Footer Section 1 in the footer area of your document.


  17. Place the following field code in the footer to show the page number of the total number of pages in the document:


  18. 
    {={SEQ variable2 \c}+{Page} } 
  19. Click Close on the Header and Footer toolbar.


Method 2: Use PAGEREF Fields

To create the Header section numbering scheme, follow these steps.

NOTE: 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.
  1. On the View menu, click Header and Footer.


  2. In Section 1, position your insertion point where you want the page number and then click the Insert Page Number icon on the Header and Footer toolbar.


  3. On the Insert menu, click Page Numbers, and then click Format.


  4. Under Page Numbering, click Start at (1 should appear in the Start at box), click OK to close the Page Number Format dialog box, and then click Close to close the Page Numbers dialog box.


  5. Click Close on the Head and Footer toolbar to close the header and footer view.


  6. Insert a bookmark at the end of each section of your document using the following steps.

    NOTE: If your document has three sections, you will insert three bookmarks.


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


    2. On the Insert menu, click Bookmark.


    3. Type a bookmark name, such as Sec1 for Section 1, and then click Add.


  7. Press CTRL+HOME to return to the top of the document.


  8. On the View menu, click Header and Footer, and then follow these steps:


    1. Click after the Page field that you inserted in step 2, and then type of (include a space before and after the word "of").


    2. On the Insert menu, click Field. Under Categories, click (All). Under Field Names, click PAGEREF, click Options, click the Bookmarks tab, select the name of the bookmark you inserted to mark the end of the current section, and then click Add to field.


    3. Click OK twice.


    4. Click Show Next on the Header and Footer toolbar. You should see Header-Section 2 in the header area of the document.

      If Same as Previous is turned on (you will see the words Same as Previous on the right side of the dotted line surrounding the header or footer), click the Same as Previous button on the Header and Footer toolbar. The words Same as Previous will disappear from the right side of the dotted line surrounding the header or footer.


    5. On the Insert menu, click Page Numbers, and then click Format.


    6. Under Page Numbering, click Start at (1 should appear in the Start at box), click OK to close the Page Number Format dialog box, click Close to close the Page Numbers dialog box, and then click Close on the Header and Footer toolbar.


    7. If your field codes are not turned on, press ALT+F9 to turn them on. With field codes turned on, the following code should appear:
      
      {PAGE} of {PAGEREF BookmarkName \* MERGEFORMAT} 
      where BookmarkName is the name of the bookmark you inserted in step 6.


    8. Change the BookmarkName within the PAGEREF field to the name of the bookmark you chose for the current section.

      NOTE: To remind yourself of which section you are working on, refer to the top left area of the dashed border around the header.


    9. Repeat steps d-h for each section of your document.


    10. Click Close on the Header and Footer toolbar.

      NOTE: You may need to update the field (click in the field and press F9) for it to appear correctly.


To create the footer numbering scheme, follow these steps:
  1. Position your insertion point at the top of the document. On the View menu, click Header and Footer. Click Switch Between Header and Footer on the Header and Footer toolbar.


  2. In Section 1, click the Insert Page Number button on the Header and Footer toolbar.


  3. Click Show Next on the Header and Footer toolbar. (NOTE: You should see Header-Section 2 in the header area of the document.) If Same as Previous is turned on (you will see the words Same as Previous on the right side of the dotted line surrounding the header or footer), click the Same as Previous button on the Header and Footer toolbar. The words Same as Previous disappear from the right side of the dotted line surrounding the header or footer.


  4. If your field codes are not turned on, press ALT+F9 to turn them on. Delete any {PAGE} field in the footer.


  5. Enter the following field into the footer of section 2:


  6. 
    {={PAGE} + {PAGEREF BookmarkName (section 1)}} 
    where BookmarkName is the name of the bookmark you used in the previous section.

  7. Click the Show Next button on the Header and Footer toolbar and then follow these steps:


    1. You should see Header-Section 3 in the header area of the document. If Same as Previous is turned on (you will see the words Same as Previous on the right side of the dotted line surrounding the header or footer), click the Same as Previous button on the Header and Footer toolbar. The words Same as Previous will disappear from the right side of the dotted line surrounding the header or footer.


    2. If your field codes are not turned on, press ALT+F9 to turn them on.


    3. Change the field to the following:


    4. 
      {={PAGE} + {PAGEREF BookmarkName (section 1)} + {PAGEREF BookmarkName (section 2)}} 
  8. Repeat step 6 for each section of your document.

    NOTE: You will need to edit the field placed into the footer for each additional section by adding the following to the end of the existing field code between the two end braces ({}):


  9. 
    + {PAGEREF BookmarkName (previous section x)} 
    where x represents the previous section number.

    Therefore, if you have four sections, section 4 would look similar to this:
    
    {={PAGE} + {PAGEREF BookmarkName (section 1)} + {PAGEREF BookmarkName (section 2)} + {PAGEREF BookmarkName (section 3)}} 
  10. Click Close on the Header and Footer toolbar.


Additional query words: page number numbering two dual pattern different differing dissimilar multiple

Keywords : kbprint kbdta kbfield wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: November 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.