


Finally, select the entire header (or footer), press F9 to update the data in the fields, hide the field codes, and display the corresponding numbers. Pressing this key combination adds the special curly brackets ( + 1 and press Ctrl+F9. Note that when you insert a PAGE field into a footer or header, the page numbering format that you set in the Page Number Format dialog box overrides the format specified by any switches added to the PAGE field.įields can also be inserted from the keyboard by typing the applicable field code, selecting it, and pressing Ctrl+F9. In all versions of Word, the PAGE field can also be inserted anywhere in a document by pressing Alt+Shift+P. Gives the total number of pages within the current section.Īll of these fields can be can be inserted anywhere in your document, not just in headers and footers, by the standard methods for inserting fields, which are described in the Microsoft help topics Insert and Format Field Codes in Word 2010 and Insert and Format Field Codes in Word 2007. The \h switch can be added to it to create a hyperlink to the bookmark, and the \p switch can be added to display the relative position of the bookmark (above or below) instead of the page number. Gives the number of the page that contains a specified bookmark. Gives the total number of pages in the document. Field codes used to show page numbers Field name
