How to Fix Word Crashing with Interop.Range.HighlightColorIndex
Question details
Developers need a solution for a regression issue where Microsoft Word crashes when a script attempts to modify the text highlight color index upon exiting a content control.

- Product
- Microsoft Word (Versions 2405 and 2406)
- Device & OS
- not provided
- Scenario
- Executing a C# VSTO add-in or Visual Basic macro that triggers the Interop.Range.HighlightColorIndex property during the Document.ContentControlOnExit event.
- Observed behavior
- Microsoft Word unexpectedly crashes and closes when the code executes in builds 2405 and 2406, whereas the exact same code runs perfectly in build 2404.
Ensure all your working documents are saved and backed up, and verify that you have administrative privileges to perform Office version rollbacks or install updates.
Roll Back Office to a Stable Build (Version 2404)
Since the bug was introduced in builds 2405 and 2406, reverting to version 2404 is the most reliable way to restore macro functionality immediately.
Microsoft Word version-specific Interop issues can disrupt critical business operations. Rolling back your Office installation to the last known good configuration (build 2404) allows your C# VSTO add-ins and VB macros to function normally while you wait for an official patch.
Open Microsoft Word, navigate to 'File' > 'Account', click on 'Update Options', and select 'Disable Updates' to prevent Word from automatically reinstalling the problematic build.
Click the Windows Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.
Navigate to the ClickToRun directory by typing 'cd %programfiles%\Common Files\Microsoft Shared\ClickToRun' and press Enter. Then, run the Office Deployment Tool command to revert to build 2404 (e.g., 'officec2rclient.exe /update user updatetoversion=16.0.xxxxx.xxxxx' replacing the x's with the specific 2404 build number).

Check for the Latest Office Updates
Microsoft routinely releases patches for Interop and VSTO vulnerabilities. Checking for newer updates may resolve the crash if a hotfix has been deployed.
Report the Issue on Microsoft Q&A
Escalate the unresolved bug to Microsoft engineers and the developer community for deeper investigation and tracking.
Try WPS Office for Stable Document Editing and Macro Execution
If version-specific Microsoft Word crashes are disrupting your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible environment for your daily document editing needs with support for standard Office formats and VBA macros, without the update-related bloat.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button to get the latest lightweight installer.
- 2. Install the Software: Run the downloaded executable file and follow the simple on-screen prompts to install WPS Office on your machine.
- 3. Open Your Documents: Launch WPS Writer and seamlessly open your existing .docx files to continue your work without experiencing update-related crashes.

Frequently Asked Questions
Why does changing HighlightColorIndex cause Word to crash?
This is a known version-specific regression bug introduced in Microsoft Word builds 2405 and 2406. It affects the Interop layer's stability when interacting with content control events, causing an unexpected application failure.
Is my C# VSTO code or VB macro causing the issue?
If your script executed perfectly in build 2404 or earlier, the crash is almost certainly due to the Microsoft Office update rather than a syntax error or logical flaw in your macro code.
How can I prevent Office updates from breaking my macros in the future?
You can disable automatic updates by opening Word, navigating to File > Account > Update Options, and clicking 'Disable Updates'. It is highly recommended to test new Office builds in a staging environment before deploying them to your entire business.




