VBA & Macro Problems

How to Fix Word Macro Error 5843 After an Office Update

Bushra ParveenBushra Parveen Nov 2, 2026 868 views

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.

How to Fix Word Macro Error 5843 After an Office 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.
Before you start

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.

Solution 1Recommended

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.

1
Open Microsoft Word

Launch Microsoft Word from your desktop or Start menu and open a new blank document.

2
Navigate to the Account page

Click on 'File' in the top-left corner of the ribbon, then select 'Account' (or 'Office Account') at the bottom of the left sidebar.

3
Check Activation Status

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.

4
Restart and Test

Once fully activated, close Word completely, reopen your document, and try running the macro again.

Verify Office License and Activation
Activation Restored: If the error was solely due to a licensing check failure post-update, activating your account should instantly restore macro functionality.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to complete the setup process.
  3. 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.
Highly compatible with Microsoft Word (.docx, .doc, .dotm) file formats.Lightweight design ensures faster installation and smoother document editing.Free alternative with a familiar user interface, requiring zero learning curve.Built-in robust formatting and styling tools that reduce the need for custom macros.
microsoft office alternative - wps office

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.