Fix the Word VBA Compile Error: Invalid Use of Property
Question details
Resolve a VBA compile error that appears when Microsoft Word starts.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- The Visual Basic Editor opens during Word startup and displays a compile error.
- Observed behavior
- Word reports “Compile error: Invalid use of property,” potentially because of VBA code in an add-in or template.
Note any recently installed add-ins or custom Word templates. The Safe Mode command and file paths below apply to Windows; menu names and locations may vary by Word version.
Test Word add-ins in Safe Mode
Use Safe Mode to check whether a startup add-in or template is contributing to the error.
On Windows, close Word, press Windows+R, enter winword /safe, and select OK. Check whether the error appears.
In Word, go to File > Options > Add-ins. Select COM Add-ins in the Manage list, choose Go, and clear the checkboxes for suspect add-ins.
Return to File > Options > Add-ins, select Word Add-ins in the Manage list, and choose Go. Clear suspect global templates or add-ins on the Templates tab.
Close Word and open it normally. If the error is gone, re-enable add-ins one at a time through the same Add-ins menus, restarting Word after each change to identify the cause.

Recreate the Normal.dotm template
Try this if disabling add-ins does not resolve the startup error.
Inspect Word startup templates for faulty VBA
Use this approach if the error persists after testing add-ins and recreating Normal.dotm.
Edit Word documents with WPS Writer
WPS Office is a free, lightweight Office alternative with a familiar interface and support for Microsoft Word formats, making it easy to move everyday document work. It does not repair Word's VBA error, and VBA-dependent templates may not work the same way.

Frequently Asked Questions
Why does this VBA error appear when Word starts?
Word may load VBA code from an add-in or template during startup. An invalid property reference in that code can trigger the compile error.
How do I start Word in Safe Mode?
On Windows, close Word, press Windows+R, enter winword /safe, and select OK.
Will renaming Normal.dotm delete my macros and styles?
Renaming the file preserves the old template, but the new Normal.dotm will not automatically contain its customizations. Keep the renamed file so you can recover them.
Where can I find Word's Startup folder?
In Word, go to File > Options > Advanced > File Locations and check the Startup location. Close Word before moving templates out of that folder.
Does WPS Office fix the VBA error in Microsoft Word?
No. WPS Writer is an alternative for editing Word documents; use Word's add-in and template troubleshooting steps to address the error in Microsoft Word.




