Field codes: SectionPages field

The SectionPages field inserts the total number of pages in a section. When using this field, you should restart page numbering from 1 in each section after the first section.

Syntax

When you view the SectionPages field in your document, the syntax looks like this:

{ SECTIONPAGES }

Note:  A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.

Example

To print text such as "Page 4 of 29" on each page of a document you've divided into sections, insert the following fields and text in the header or footer:

Page { PAGE } of { SECTIONPAGES }

Connect with an expert
Contact us
Expand your skills
Explore training

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×