How to Troubleshoot Word Run-Time Error 2147220991 (80040201)
Question details
The user is encountering Microsoft Visual Basic run-time error -2147220991 (80040201) in Word and needs a systematic approach to identify the cause and resolve the issue.

- Product
- Microsoft Word
- Device & OS
- Windows
- Scenario
- Opening a specific document, launching Microsoft Word, or attempting to run a VBA macro.
- Observed behavior
- Word displays a run-time error dialog containing the code -2147220991 (80040201), which halts the execution of a macro or disrupts the normal operation of the application.
Before you begin troubleshooting, take a screenshot of the complete error message to note if it points to a specific command, and ensure you have saved a backup copy of the affected Word document.
Launch Word in Safe Mode to Isolate Add-ins
Starting Word in Safe Mode bypasses third-party add-ins and startup templates, helping you determine if a malfunctioning extension is causing the run-time error.
Many run-time errors are triggered by outdated or incompatible COM add-ins rather than the Word application itself. Using Safe Mode allows you to isolate the application environment.
Press the Windows key + R on your keyboard to open the Windows Run dialog box.
Type 'winword /safe' in the entry field and press Enter. Word will open with 'Safe Mode' displayed in the title bar.
If the error does not appear in Safe Mode, go to File > Options > Add-ins. Change the Manage dropdown to 'COM Add-ins', click Go, and uncheck add-ins one by one to find the culprit.

Adjust Macro Security Settings
Because error 80040201 is often related to VBA execution, overly strict macro security settings or antivirus interference might be blocking the script.
Perform an Online Repair of Office
If the run-time error is caused by corrupted Office installation files or missing COM registrations, a built-in repair tool can fix the underlying structure.
Experience a Bug-Free Writing Environment with WPS Office
If persistent VBA run-time errors and COM add-in conflicts in Microsoft Word continue to disrupt your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative to Microsoft Office, letting you handle Word documents effortlessly without complex setup issues.
- 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
- 2. Open WPS Writer: Launch WPS Writer, the dedicated word processor that serves as a lightweight alternative to Microsoft Word.
- 3. Load your Document: Open your existing .docx files directly in WPS Writer to continue working without VBA run-time interruptions.

Frequently Asked Questions
What exactly is run-time error -2147220991 (80040201) in Word?
It is a Microsoft Visual Basic (VBA) run-time error that occurs when a macro, custom add-in, or template fails to execute. This can be caused by security restrictions blocking the script, missing references in the code, or corrupted Office installation files.
How do I find out which add-in is causing the Word error?
Start Word in Safe Mode using 'winword /safe'. If the error disappears, navigate to File > Options > Add-ins. Manage your COM Add-ins by unchecking all of them, then restarting Word normally. Re-enable them one by one until the run-time error returns to pinpoint the exact add-in responsible.
Can my antivirus software trigger a VBA run-time error?
Yes. Many modern endpoint protection and antivirus programs aggressively monitor Office applications and will actively block VBA scripts or macros from running to prevent malware. Temporarily disabling your antivirus can help determine if it is the root cause.
Will repairing Microsoft Office delete my personal documents?
No. Running an Online Repair or Quick Repair only replaces and fixes the core application files and registry keys of the Microsoft Office software. Your personal documents, templates, and files saved on your computer remain completely untouched.




