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."

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!