Inserting the Total Number of Pages for Each Section of a Word Document

Written by:  • Edited by: Michele McDonough
Updated Feb 10, 2009
• Related Guides: Microsoft | Microsoft Word

Learn how to insert the total number of pages into a header or footer for each SECTION of your Word document.

How to Use the SectionPages Field Code

In the following example, we will create a footer that displays the page number and total number of pages for each section of a Word document.

1. Go to the first page of Section 1 and click into your header or footer and place your cursor where you want the page numbers to be displayed (click the center button on the Formatting toolbar to center your cursor). Then click the Insert Page Number button on the Header and Footer toolbar to insert the page number. Enter a space, then type the word "of" and another space.

2. Click Insert on the menu bar and choose Field. Scroll down in the list of Field Names and select SectionPages. In the Format section choose a number format. Click OK.

3. You should now see the number of pages displayed in the footer.

Start Page Number at 1 at the Beginning of Each Section

If you want each section to start at page 1, you'll need to turn Same as Previous OFF, otherwise the numbering will continue from the previous section.

1. Go to the first page of your next section and click into the header or footer. You will see the words "Same as Previous" displayed on the Header and Footer border (dotted line). To turn this option OFF, click the Link to Previous button on the Header and Footer toolbar. You should no longer see the words "Same as Previous" on the border.

2. Now that "Same as Previous" has been turned off, you can change the number format for this section. Select the page number and click on the Format Page Number button on the Header and Footer toolbar. The Page Number Format dialog box opens. Click on the radial button next to Start at and make sure there is a 1 in the box. To change the type of numbering, select one from the Number Format drop-down list. Click OK.

If you have more sections in your document, you will need to repeat these last two steps in each of these sections.


Comments

Showing all 5 comments
 
moustafa Jul 20, 2010 7:15 PM
free
good but you can tell me please about
Inserting ask, if…then…else… fields
Krystyne20 Jan 8, 2010 1:14 PM
Response to JC
These instructions are for a document that has multiple SECTIONS. It sounds like your document only has one section, so to get the number of pages, make sure you are using the "Insert Number of Pages" button that is on the Header and Footer toolbar.
J. C. Jan 7, 2010 11:20 PM
number of pages chnages with page number
example: a three page document.... after using header and footer the text on the screen shows- p.1 of 3....p.2 of 3...... p'3 of 3, The printers (2 different ones) print. p.1 of 1.. p.2 of 2.... p.3 of 3.
Windows Vista and Wood 2002. Hp LazerJet printer and hp 6100.
Julie Aug 28, 2009 4:33 PM
SORRY!
I totally misread part of instructions on this page and the solution didn't seem to work. Just tried again and bingo. It's been one of those days. Thanks for publishing the info!
Julie Aug 28, 2009 4:29 PM
Total number of pages
Starting section numbering is good, but is there a field code to return TOTAL pages for a section?

Example: Page X of [TOTAL pages this section only].

Thanks!
 
blog comments powered by Disqus
Email to a friend