Friday, March 3, 2017

Add page number X of Y to a document

Add page number X of Y to a document

If you need to show the current page number and the total number of pages in a document, you can use the Page Number Gallery, or you can insert field codes. The quickest way is to use the Page Number gallery. Just remember, the Page Number Gallery will replace the existing header or footer if you have one.

What do you want to do?

Use the Page Number Gallery to insert Page X of Y

Use field codes to insert Page X of Y

Learn more about page numbers

Use the Page Number Gallery to insert Page X of Y

The Page Number Gallery provides a menu of ready-to-use page numbers.

  1. On the Insert tab, click Page Number.

    To add page numbers, choose the Insert tab, and then select Page Number.
  2. Click a location, such as Top of Page.

    Note:  The Page Margins location does not include preformatted Page X of Y page numbers.

  3. In the gallery, scroll through the options until you see Page X of Y.

    In the gallery of page number styles, scroll to locate "Page X of Y" styles.
  4. Click a page number format.

  5. To return to the body of your document, click Close Header and Footer on the Design tab (under Header & Footer Tools), or double-click anywhere outside the header or footer area.

    The Close Header and Footer option is highlighted on the Header and Footer Tools tab.

Use field codes to insert Page X of Y

When you use the Page Number Gallery, Word automatically inserts two field codes for you—Page and NumPages. You add those codes manually when you don't want to lose information already in a header or footer.

  1. Double-click in the header area or the footer area (near the top of the page or near the bottom of the page).

    This opens the Design tab under Header & Footer Tools.

  2. Position your cursor where you'd like to add the page numbers.

    To place the page numbers in the center or on the right side of the page, do the following:

    • To place your page numbers in the center, click Insert Alignment Tab in the Position group of the Design tab, click Center, and then click OK.

    • To place your page numbers on the right side of the page, click Insert Alignment Tab in the Position group of the Design tab, click Right, and then click OK.

  3. Type page and a space.

  4. On the Insert tab, click Quick Parts and then click Field.

  5. In the Field names list, click Page, and then click OK.

  6. After the page number, type a space, type of, and then type another space.

  7. On the Insert tab, click Quick Parts and then click Field.

  8. In the Field names list, click NumPages, and then click OK.

  9. After the total number of pages, type a space, and then type pages.

  10. To change the numbering format, click Page Number in the Header & Footer group, and then click Format Page Numbers.

  11. To return to the body of your document, click Close Header and Footer on the Design tab (under Header & Footer Tools).

If you'd like to learn more about field codes, see Field codes in Word.

Learn more about page numbers

No comments:

Post a Comment