Field codes: PageRef field

{ PAGEREF Bookmark [\* Format Switch ] }

Inserts the page number of a bookmark (bookmark: A location or selection of text in a file that you name for reference purposes. Bookmarks identify a location within your file that you can later refer or link to.) for a cross-reference. To cross-reference items in a document, use the Cross-reference command (Insert menu, Reference submenu).

ShowInstructions

\* Format Switch

Optional switch that overrides the numeral style (style: A combination of formatting characteristics, such as font, font size, and indentation, that you name and store as a set. When you apply a style, all of the formatting instructions in that style are applied at one time.) selected in the Number format box in the Page Number Format dialog box (Insert menu, Page Numbers dialog box, Format).

ShowSwitches

\h

Creates a hyperlink (hyperlink: Colored and underlined text or a graphic that you click to go to a file, a location in a file, a Web page on the World Wide Web, or a Web page on an intranet. Hyperlinks can also go to newsgroups and to Gopher, Telnet, and FTP sites.) to the bookmarked paragraph.

\p

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.

ShowExamples

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

Field:

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

Result:

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

"... see the table above."

 
 
Applies to:
Word 2003