How to Change the Gray Field Shading Color in Microsoft Word
Question details
The user wants to know if it is possible to change the default gray background color used for field shading in Microsoft Word to a different custom color.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Customizing document appearance and managing field shading visibility.
- Observed behavior
- Microsoft Word displays field shading in a default gray color for on-screen visibility, but does not provide a built-in color picker to change this specific system setting to another color.
Determine whether you need the background color to appear only on your screen while editing, or if you want the color to be visible when the document is printed or exported to PDF.
Use Standard Text Shading as an Alternative
Since the system's gray field shading cannot be changed, you can apply standard paragraph or character shading to the field to achieve a colored background.
Microsoft Word's built-in field shading (the gray background that appears when you click a field) is a system setting designed solely for on-screen identification. It cannot be directly modified to another color.
As a reliable workaround, you can apply standard text shading or highlighting to the field text or prompt, which also allows the color to print.
Highlight the field code result or the specific prompt text you want to colorize in your document.
Navigate to the Home tab on the ribbon. Look for the Borders button in the Paragraph group, click the drop-down arrow, and select 'Borders and Shading'.
Go to the Shading tab in the dialog box. Choose your desired color from the 'Fill' palette, ensure the 'Apply to' dropdown is set to 'Text', and click OK.
Use the CharFormat Switch in Field Codes
Add the \* CharFormat switch to your field code to force the field result to adopt the text formatting and shading of the first character in the field code.
Try WPS Office for Flexible Document Formatting
If you find Microsoft Word's formatting limitations frustrating, consider switching to WPS Office. It provides a lightweight, highly compatible environment for editing documents with rich formatting tools, familiar interfaces, and a seamless transition from Microsoft Office.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Open your Word document: Launch WPS Writer and open your existing .docx files without worrying about formatting loss.
- 3. Apply shading easily: Use the familiar ribbon interface in WPS Writer to apply custom shading and background colors to your text fields.

Frequently Asked Questions
Why is there a gray background behind my text in Word?
The gray background indicates that the text is a dynamic field, such as a page number, date, or mail merge variable. It acts as a visual aid to help you quickly identify fields in your document and usually does not print.
Can I completely turn off the gray field shading in Word?
Yes. You can hide the field shading by going to File > Options > Advanced. Scroll down to the 'Show document content' section and change the 'Field shading' dropdown option from 'Always' or 'When selected' to 'Never'.
Will the gray field shading appear when I print the document?
No, the default gray field shading is designed strictly for on-screen editing visibility. It will not appear when you print the document or export it to a PDF file.
How do I add a background color to a field that actually prints?
To add a printable background color, you must use standard text formatting instead of relying on field shading. Select the text, go to the Home tab, and use either the 'Text Highlight Color' tool or the 'Shading' bucket icon in the Paragraph group.




