How to Fix Word REF Field Charformat Formatting Problems
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.

- 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.
Verify whether Track Changes is currently enabled in your document, as active tracking can interfere with field formatting and updating.
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.
Press Alt + F9 on your keyboard to reveal the underlying field codes in your document.
Highlight the entire field code construction, making sure to include the enclosing curly brackets {}.
Use the Home tab on the Ribbon to apply your required formatting, such as blue text color and underline, to the selected field code.
Press F9 to update the field with the new formatting, then press Alt + F9 again to hide the field codes and view the result.

Accept Tracked Changes and Disable Tracking
Active tracked changes can disrupt how Word processes and displays field codes, causing formatting to drop.
Report the Bug to Microsoft
If the issue persists in newer Microsoft 365 versions despite correct formatting, it may be a known software bug.
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. Download and install: Visit the official WPS website to download the free WPS Office suite and install it on your device.
- 2. Open your document: Launch WPS Writer and open your existing Word document containing the REF fields.
- 3. Edit flawlessly: Update your field codes without worrying about formatting drops or newer update glitches.

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.




