Applies ToWord for Microsoft 365 Word for Microsoft 365 for Mac Word 2024 Word 2024 for Mac Word 2021 Word 2021 for Mac Word 2019 Word 2019 for Mac Word 2016

The NumPages field inserts the total number of pages in the document, using information from the Statistics tab in the Properties dialog box. To view the Properties dialog box, click the File tab, click Info, click Properties (below the document preview on the right side), and then click Advanced Properties.

Syntax

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

{ NUMPAGES }

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.

Examples

To print page numbers such as "Page 12 of 45" on each page of a document, insert the following text and fields in a header or footer.

Page { PAGE } of { NUMPAGES }

If the page numbering starts on a page number other than 1, use an = (Formula) field to compute the total page number count. To determine the starting page number for the active document, (StartingNumber), click the Insert tab, click Page Number, and then click Format Page Numbers. The starting page number is displayed in the Start at box.

Page { PAGE } of { = (StartingNumber - 1) + { NUMPAGES } }

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.