[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
Syntax:
NUMPAGES [ switch ]
Description: Retrieves the number of pages in the current document, as recorded in the Pages element of the Application-Defined File Properties part.
Field Value: The number of pages in the current document.
Switches: Zero or one numeric-formatting-switch or general-formatting-switch.
[Example: Consider the case in the document has 19 pages and the following fields are updated:
NUMPAGES \# #,##0
NUMPAGES \* OrdText
the results are:
19
nineteenth
end example]