How to Apply Hyperlink Formatting to Cross-References in Word
Question details
The user wants to format cross-reference fields to visually resemble standard clickable hyperlinks, such as having blue text and an underline.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Creating or editing a document where cross-references are used for internal navigation, and the user wants them to visually stand out to readers as clickable links.
- Observed behavior
- Word automatically formats pasted URLs with the default Hyperlink style, but cross-reference fields remain in plain text and do not receive hyperlink formatting automatically.
Ensure your document's cross-references are already inserted as hyperlinks (using the 'Insert as hyperlink' checkbox) before attempting to modify their visual formatting.
Use the CHARFORMAT Switch in Field Codes
Modify the cross-reference field code directly to apply a specific format to the entire field result, ensuring the formatting persists after updates.
By default, updating a field in Word strips manual formatting. Adding the \* CHARFORMAT switch forces the field to adopt the formatting applied to the first character of its field code.
Press Alt + F9 on your keyboard to reveal the field codes in your document. Your cross-reference will look something like { REF _Ref123456 \h }.
Click inside the bracket at the end of the code and type \* CHARFORMAT, making it look like { REF _Ref123456 \h \* CHARFORMAT }.
Highlight just the first letter of the field code (the 'R' in REF). Go to the Home tab and apply your desired hyperlink formatting, such as blue text color and an underline.
Press Alt + F9 again to hide the field codes. Select the cross-reference text in your document and press F9 to update it. The entire cross-reference will now display your new formatting.

Create and Apply a Custom Character Style
Define a custom style that mimics a hyperlink and apply it manually to your cross-references for a consistent look.
Enable Field Shading for Better Visibility
If you only need cross-references to stand out for editing and navigation purposes rather than for final presentation, you can enable field shading.
Easily Manage Cross-References and Formatting with WPS Writer
WPS Office offers a powerful, user-friendly Writer application that makes inserting, editing, and formatting cross-references seamless. You can easily manage field codes, create custom character styles, and navigate complex documents just as you would in Microsoft Word, but with a lighter, faster interface.
- 1. Insert a cross-reference: Open your document in WPS Writer, go to the 'References' tab, and click 'Cross-reference' to insert a link to your target heading or bookmark.
- 2. Select the reference text: Highlight the newly inserted cross-reference in your document body.
- 3. Apply visual formatting: Go to the 'Home' tab and use the font color and underline tools to make the text look like a clickable hyperlink.
- 4. Save as a custom style: For bulk application, use the Styles pane in WPS Writer to save this formatting as a new Character style, ensuring consistency across your entire document.

Frequently Asked Questions
Why doesn't Word apply the Hyperlink style to cross-references automatically?
Word's default behavior treats cross-references as dynamic text primarily designed for printed documents, where blue, underlined links are unnecessary. Therefore, the REF field adopts the surrounding paragraph text format rather than a hyperlink style.
Will the CHARFORMAT switch keep my formatting if I update the document?
Yes. The \* CHARFORMAT switch is explicitly designed to lock in formatting. It forces the field to retain the exact formatting applied to the first character of the field code (like the 'R' in REF) every time you press F9 or update the document before printing.
Does formatting a cross-reference affect its ability to jump to the target?
No, applying custom character styles or manually changing the text color and underline does not break the hyperlink functionality. As long as you checked 'Insert as hyperlink' (which adds the \h switch to the field code) upon insertion, it will remain clickable.
Can I find and format all cross-references at once?
You can use the Find feature (Ctrl + F) or Advanced Find to search for the ^19 REF field code when field codes are toggled on (Alt + F9). However, applying a character style or the CHARFORMAT switch usually requires updating them individually or using a VBA macro for bulk changes.




