Formatting Issues

How to Apply Hyperlink Formatting to Cross-References in Word

Huma Ashraf ChHuma Ashraf Ch Oct 26, 2026 870 views

Question details

The user wants to format cross-reference fields to visually resemble standard clickable hyperlinks, such as having blue text and an underline.

How to Apply Hyperlink Formatting to Cross-References in Word
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.
Before you start

Ensure your document's cross-references are already inserted as hyperlinks (using the 'Insert as hyperlink' checkbox) before attempting to modify their visual formatting.

Solution 1Recommended

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.

1
Toggle field codes

Press Alt + F9 on your keyboard to reveal the field codes in your document. Your cross-reference will look something like { REF _Ref123456 \h }.

2
Add the CHARFORMAT switch

Click inside the bracket at the end of the code and type \* CHARFORMAT, making it look like { REF _Ref123456 \h \* CHARFORMAT }.

3
Format the first character

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.

4
Update the field

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.

Use the CHARFORMAT Switch in Field Codes
Formatting Persists: Using this method ensures that even if the document's pagination changes and you update all fields, your cross-references will retain their hyperlink appearance.

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. 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. 2. Select the reference text: Highlight the newly inserted cross-reference in your document body.
  3. 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. 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.
Seamless formatting of cross-references and internal document linksHigh compatibility with Microsoft Word (.docx) formats, styles, and field codesIntuitive Styles pane for quick custom character formattingLightweight, fast-loading, and completely free to use
microsoft office alternative - wps office

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.