Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Word > Fields > Links and References > STYLEREF

 STYLEREF styleidentifier [switches]
 Inserts text that's formatted with the specified style. When inserted in a header or footer, the STYLEREF field prints the first or last text formatted with the specified style on the current page, allowing you to print dictionary-style headers or footers.

 styleidentifier
 switches 
 ????


 REMARKS
 
  • Where you insert the STYLEREF field determines the direction that Microsoft Word searches in for the style and thus can affect which text is inserted.
  •  
  • This field can be found in the Links and References category
  •  
  • When you insert the field in: Document text Microsoft Word searches for the closest text preceding the STYLEREF field. If the style isn't found, Word searches for the closest following text.
  •  
  • When you insert the field in: Footnotes, annotations, and endnotes Microsoft Word searches for the closest text preceding the footnote, annotation, or endnote reference mark in the document text. If the style isn't found, Word searches for the closest text following the reference mark.
  •  
  • When you insert the field in: Headers and footers (during printing) Microsoft Word searches for the current page, from top to bottom. If the style isn't found, Word searches next from the top of the 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.
  •  
  • When you insert the field in: Headers and footers (when not printing) Microsoft Word searches for the section that contains the STYLEREF field, from the beginning. If the style isn't found, Word searches from the end of the section to the end of the document.

  •  EXAMPLES
     ??

     Fields - S | Index - S | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top