How to Hide Yellow Editable Area Highlighting in Word
Question details
The user needs to remove or hide the yellow highlighting that appears on editable text regions within a restricted Word template.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Distributing a restricted document where recipients need to edit specific regions without the visual distraction of yellow highlights.
- Observed behavior
- Word automatically applies a bright yellow highlight to all editable regions whenever document editing restrictions are enabled.
Ensure you have permission to edit the document's VBA macros. If the document is purely for viewing and printing by the recipient, verify if they actually need editing capabilities.
Use a VBA Macro to Disable Editable Range Shading
Add a specific macro to the document to automatically turn off the shading when the document opens.
The yellow highlighting is an intentional Microsoft Word feature designed to help users identify editable areas in restricted documents. You can suppress it programmatically using VBA.
Press Alt + F11 in Microsoft Word to open the Visual Basic for Applications (VBA) editor.
In the 'ThisDocument' module, add the AutoOpen and AutoNew procedures containing the code: ActiveWindow.View.ShadeEditableRanges = False.
Save the document as a Macro-Enabled Word Template (.dotm) or Document (.docm) to ensure the code executes when recipients open it.

Export the Document as a PDF
If the recipients only need to view or print the document without editing the text, distributing it as a PDF removes all editable restrictions and visual highlighting.
Easily Export Restricted Templates to PDF Using WPS Office
WPS Office provides a highly compatible and free environment for opening Word documents and seamlessly exporting them to PDF, stripping away unwanted interface highlights while preserving your layout.
- 1. Open your Document: Launch WPS Writer and open your restricted Word template.
- 2. Access the PDF Tool: Click on the 'Menu' button in the top left corner and select 'Export to PDF'.
- 3. Configure Settings: Adjust your export settings, choosing the pages and quality required for your final file.
- 4. Save the Clean PDF: Click 'Export' to generate a clean PDF document without any editable area highlights.

Frequently Asked Questions
Can I hide the yellow highlighting without using macros?
In Microsoft Word, the yellow shading is a built-in visual indicator for restricted editing. Without using VBA macros, it cannot be permanently disabled for recipients unless they manually toggle the shading off in their own application settings.
How do recipients manually turn off the yellow highlights?
Users can uncheck the 'Highlight the regions I can edit' option located within the Restrict Editing pane. However, this must be done manually by each recipient every time they open the file.
Does saving the restricted document as a PDF keep the yellow highlights?
No. When you export or print a restricted Word document to PDF format, the yellow editable area shading is stripped away and not included in the final output.




