Formatting Issues

How to Fix Word REF Field Charformat Formatting Problems

Chanuka GeekiyanageChanuka Geekiyanage Nov 2, 2026 868 views

Question details

The user needs to fix an issue where the Charformat switch in a Word REF field fails to preserve text formatting after updating the field.

How to Fix Word REF Field Charformat Formatting Problems
Product
Microsoft Word
Device & OS
Windows 10
Scenario
Updating a REF field using the Charformat switch to maintain specific text styles in a document.
Observed behavior
The text formatting, such as blue color and underline, is lost or fails to apply after the field is updated, especially in newer Microsoft 365 versions.
Before you start

Verify whether Track Changes is currently enabled in your document, as active tracking can interfere with field formatting and updating.

Solution 1Recommended

Apply Formatting to the Entire Field Construction

Manually apply the desired font formatting to the entire field code to force the Charformat switch to recognize it.

The Charformat switch applies the formatting of the first character of the field name to the entire result. If it fails, applying the format to the entire field construction often resolves the issue.

1
Toggle field codes

Press Alt + F9 on your keyboard to reveal the underlying field codes in your document.

2
Select the entire field

Highlight the entire field code construction, making sure to include the enclosing curly brackets {}.

3
Apply desired formatting

Use the Home tab on the Ribbon to apply your required formatting, such as blue text color and underline, to the selected field code.

4
Update and hide field codes

Press F9 to update the field with the new formatting, then press Alt + F9 again to hide the field codes and view the result.

Apply Formatting to the Entire Field Construction
Formatting check: Ensure the very first character inside the field brackets (usually the 'R' in REF) clearly has the formatting applied, as the Charformat switch relies heavily on it.
Free Microsoft Office alternative

Try WPS Office to Avoid M365 Field Code Bugs

If newer versions of Microsoft 365 are struggling to preserve your document's field formatting, consider switching to WPS Office. It provides a highly compatible and lightweight environment that handles complex document formatting smoothly.

  1. 1. Download and install: Visit the official WPS website to download the free WPS Office suite and install it on your device.
  2. 2. Open your document: Launch WPS Writer and open your existing Word document containing the REF fields.
  3. 3. Edit flawlessly: Update your field codes without worrying about formatting drops or newer update glitches.
Reliably renders complex field codes, references, and formatting.Fully compatible with Microsoft Word formats like .docx and .doc.Lightweight, fast, and completely free to use without subscription bugs.
microsoft office alternative - wps office

Frequently Asked Questions

What does the Charformat switch do in a Word field?

The \* CHARFORMAT switch forces the entire result of a field to adopt the exact formatting applied to the first character of the field name within the field code.

Why does my REF field lose its underline and color when updated?

This usually happens if the formatting wasn't properly applied to the first character of the field code, or due to a bug in recent Microsoft 365 updates that fails to respect the Charformat rules.

Can Track Changes affect how Word fields update?

Yes, having Track Changes active can interfere with the background updating and formatting rules of field codes. Accepting all changes and turning off tracking often resolves these display problems.