Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
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."

advertisement