Field codes: PageRef field

The PageRef field inserts the page number of a bookmark for a cross-reference. To cross-reference items in a document, use the Cross-reference command (Insert tab, Links group).


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

{ PAGEREF Bookmark [\* Format Switch ] }

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.


\* Format Switch

Optional switch that overrides the numeral style selected in the Number format box in the Page Number Format dialog box (Insert tab, Headers & Footers group, Page Number command, Format Page Numbers).



Creates a hyperlink to the bookmarked paragraph.


Causes the field to display its position relative to the source bookmark.

The string "on page #" is used when the PageRef field is not on the current page. When the PageRef field is on the current page, it omits "on page #" and returns "above" or "below" only.


In the following example, the bookmark "Worldpop1990" marks the table containing figures for 1990.


The world population in 1991 was 5 billion; for 1990 figures, see the table { PAGEREF Worldpop1990 \p }.


The position of the table is inserted in place of the field:

"... see the table above."

Applies To: Word 2010, Word 2016, Word 2016 for Mac, Word 2013

Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Change language