How to Fix Word Macro Error 5843 After an Office Update
Question details
Users need to resolve run-time error 5843 when executing Word macros, especially those used for changing font size or text color, occurring after a recent system update.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Running existing custom macros to format text after updating Windows or Microsoft Office.
- Observed behavior
- The macro fails to execute and returns run-time error 5843. This is often caused by an unlicensed Office installation or a corrupted Normal.dotm template rather than the macro code itself.
Make sure to completely close all instances of Microsoft Word and save your current work before making changes to Word's background templates or checking account licenses.
Verify Office License and Activation
Use this solution to ensure that your Microsoft Word application is properly licensed, as macro errors like 5843 frequently occur in deactivated environments.
Unlicensed or deactivated versions of Microsoft Office often block advanced features, including VBA macro execution. Updating Office might have inadvertently signed you out or disrupted the activation status, triggering this run-time error.
Launch Microsoft Word from your desktop or Start menu and open a new blank document.
Click on 'File' in the top-left corner of the ribbon, then select 'Account' (or 'Office Account') at the bottom of the left sidebar.
Look under the 'Product Information' section on the right side. Verify that it says 'Product Activated'. If it prompts for a sign-in or activation, enter the Microsoft credentials associated with your Office subscription.
Once fully activated, close Word completely, reopen your document, and try running the macro again.

Back Up and Reset the Normal.dotm Template
Use this method if your macros are stored in the default Normal template, which may have been corrupted during the Office update.
Use Built-in Word Formatting Commands
A reliable workaround for macros that only perform simple formatting changes like font size and color adjustments.
Use WPS Office as a Reliable and Free Alternative to Avoid Macro Errors
If Microsoft Word macro errors like 5843 continue to disrupt your workflow after updates, consider switching to WPS Office. It is a highly compatible, free, and lightweight suite that handles document formatting seamlessly without the heavy reliance on complex VBA macros.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to complete the setup process.
- 3. Open Your Documents: Launch WPS Writer and open your existing Word documents. Enjoy a stable editing environment without worrying about update-induced macro errors.

Frequently Asked Questions
What causes Word Macro Error 5843?
Run-time error 5843 in Word typically happens when a macro fails to execute properly. It is frequently caused by a disrupted Microsoft Office license validation, an expired subscription, or a corrupted Normal.dotm template following an Office or Windows update.
Where is the Normal.dotm template located in Windows?
The Normal.dotm template is usually stored in the hidden AppData folder. You can access it directly by pressing Windows + R, typing '%appdata%\Microsoft\Templates', and hitting Enter.
Do I need to rewrite my macro code to fix this error?
Not usually. Because the error is often tied to the Word environment, restoring your Office activation status or resetting the template file generally resolves the issue without needing to edit the underlying VBA code.
How can I automate font changes without using macros?
You can utilize Microsoft Word's built-in 'Styles' feature. By configuring a custom Style with your preferred font size and color, you can apply complex formatting with a single click from the Home ribbon, bypassing the need for VBA scripts.




