bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Formatting > Headers and Footers > Inserting a Cross-Reference to the Last Style on a Page

Inserting a Cross-Reference to the Last Style on a Page

Summary: You can use field codes to return the last text on a page that is formatted with a particular style. This is very handy in putting together headers or footers for reference documents. This tip explains how to correctly use the STYLEREF field to achieve the desired results. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)

Word includes a cross-reference feature that allows you to indicate the contents of a paragraph formatted with a specific style. This is done with fields, and is used primarily in headers or footers. As an example, suppose you wanted your header (or footer) to refer to the last heading on a page, as is frequently done in reference material. You can use the following steps to set up this type of cross-reference.

  1. Position the insertion point where you want the cross-reference to appear (such as in a header or footer).
  2. Press Ctrl+F9 to insert field brackets. Make sure the insertion point stays between the brackets.
  3. Type STYLEREF followed by the name of the formatting style used to format the paragraph you want to cross-reference. The name of the formatting style must be enclosed in quotes. Follow this with the \l switch. Thus, if you wanted to cross-reference the heading 4 style, you would use this within the field brackets: styleref "heading 4" \l.
  4. Press F9 to update the field information. Word replaces the field with the text of the last paragraph on the page formatted with the specified style.

Tip #1067 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003


Save Time! You can have this tip (and several hundred just like it) in the WordTips annual archives. Imagine having over 400 tips available at your fingertips, in each annual volume.

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)