Article ID: 176540
Article Last Modified on 10/23/2002
{STYLEREF "StyleName" \* MERGEFORMAT}
{STYLEREF "StyleName" <switches> \* MERGEFORMAT}
\l - Inserts the last text formatted with the style on the current page
instead of the first text formatted with this style. Word searches
the page from bottom to top.
The \l switch will only work correctly in headers and footers.
\n - Causes the field to display the entire paragraph number for a
referenced paragraph without trailing periods. No information about
prior levels is displayed unless it is included as part of the
current level. For example, caption numbering is included if caption
numbering has been applied to the paragraph.
\p - Causes the field to display its position relative to the source
bookmark using the word "above" or "below." If the STYLEREF field
appears in the document before the bookmark, it evaluates to "below."
If the STYLEREF field appears after the bookmark, it evaluates to
"above." If the STYLEREF field appears within the bookmark, an error
is returned.
\r - Inserts the entire paragraph number of the bookmarked paragraph in
relative context, or relative to the paragraph numbering scheme,
without trailing periods.
\t - When used with the \n, \r, or \w switch, causes the STYLEREF field to
suppress nondelimiter, or nonnumerical, text. With this switch, for
example, you can reference "Section 1.01," and only "1.01" is
displayed in the result.
\w - Inserts the paragraph number of the bookmarked paragraph in full
context, from anywhere in the document. For example, when referencing
paragraph "ii.", a STYLEREF field with the \w switch would return
"1.a.ii" as a result.
STYLEREF "<stylename>"
Apple--Baseball
{STYLEREF "Heading 2"}--{STYLEREF "Heading 2" \l}
Apple - Baseball (where Apple and Baseball have been formatted with
Heading 2 style)
{STYLEREF "Heading 1"}
File Management
If STYLEREF
Is here Word searches here
-----------------------------------------------------------------------
Document text The closest text preceding the STYLEREF field. If the
style isn't found, Word searches for the closest
following text.
Footnotes, The closest text preceding the footnote, annotation,
annotations, or endnote reference mark in the document text.
and endnotes If the style isn't found, Word searches for the
closest text following the reference mark.
Headers and The current page, from top to bottom. If the style
Footers isn't found, Word searches next from the top of the
(during printing) page to the beginning of the document, and then from
the bottom of the page to the end of the document.
If the \l switch is used, Word searches from the
bottom of the page to the beginning or end of the
document.
Headers and The section that contains the STYLEREF field, from
Footers the beginning. If the style isn't found, Word
(when not searches from the end of the section to the end of
printing) the document.
For more information about the STYLEREF field in tables, click the Office
Assistant, type "styleref", click Search, and then click "Field codes:
StyleRef field".
120802 Office: How to Add/Remove a Single Office Program or Component
141994 How to Use the STYLEREF in Microsoft Word
Keywords: kbhowto KB176540