Using Expression Fields to Manipulate Page NumberingLast reviewed: February 2, 1998Article ID: Q95886 |
The information in this article applies to:
SUMMARYThis article describes how you can use the Expression field and the SUM function in conjunction with the PAGE field to manipulate page numbering in the following ways:
MORE INFORMATIONTo quickly toggle the field codes display, press ALT+F9 (OPTION+F9 on the Macintosh).
Return the Current Page Number Plus 1 (or More)The Expression field below adds 1 to the current page number to return the number of the next page in your document. You can use this field in your header or footer to instruct the reader to "Continue reading on page x" (where x is the result of the Expression field).
{={PAGE}+1} Return the Number of Pages in the Document Minus a Specified NumberThe following Expression field subtracts a specified number (x) from the total number of pages in your document and displays the result:
{={NUMPAGES}-x}For example, if {NUMPAGES} returns 10 as the total number of pages in the document, {={NUMPAGES}-3} returns 7.
Number the Document in Reverse OrderYou can insert the Expression field below in the header or footer to number the pages in your document in reverse order. This method works if your document is numbered continuously, starting at 1; it does not work if page numbering in your document is not continuous or does not start at 1.
{={NUMPAGES}-{PAGE}} REFERENCESWord version 2.0 for Windows Help, "Field Types and Instructions" section, "Expression" and "Numpages" topics. "Microsoft Word for Windows User's Reference," pages 95-96, 103
|
Additional query words: equal calculate calculation plus difference
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |