Add page number X of Y to a document

The Page Number gallery includes some preformatted page numbers that include the total page numbers (page X of Y pages). However, if you want to add other information to your header or footer, such as the document’s file name and path, you can create a custom page number.

What do you want to do?


Use the Page Numbers gallery

  1. On the Insert tab, in the Header & Footer group, click Page Number.

Header and Footer group

  1. Click the page number location that you want.

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

  1. In the gallery, scroll through the options until you see Page X of Y.
  2. Click the page number format that you want.
  3. To return to the body of your document, click Close Header and Footer on the Design tab (under Header & Footer Tools).

Header and footer Close button

Insert a custom page number

If you aren’t using gallery options for the header or footer that contains your page number, you can create a custom page number.

  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.

  1. To place your page number in the center or on the right side of the page, do the following:
    • To place your page number 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 number 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.
  2. Type page and a space.
  3. On the Insert tab, in the Text group, click Quick Parts, and then click Field.

Office 14 Ribbon

  1. In the Field names list, click Page, and then click OK.
  2. After the page number, type a space, type of, and then type another space.
  3. On the Insert tab, in the Text group, click Quick Parts, and then click Field.

Quick Parts in the Text group

  1. In the Field names list, click NumPages, and then click OK.
  2. After the total number of pages, type a space, and then type pages.
  3. To change the numbering format, click Page Number in the Header & Footer group, and then click Format Page Numbers.
  4. To return to the body of your document, click Close Header and Footer on the Design tab (under Header & Footer Tools).

Header and footer Close button

Top of Page Top of Page

 
 
Applies to:
Word 2010