logo
search
VBA & Macro Problems

How to Fix Word Macro System Error H80070057

Kushani NimanthikaKushani Nimanthika Oct 9, 2026 869 views

Question details

The user is unable to run or edit existing Word macros due to an H80070057 system error.

How to Fix Word Macro System Error H80070057
Product
Microsoft Word
Device & OS
not provided
Scenario
Attempting to execute or edit VBA macros in Word, or using the 'Bring to Front' option on an inserted shape within a document.
Observed behavior
A system error H80070057 is triggered, actively preventing macros from running or allowing the user to edit the VBA code.
Before you start

Before proceeding with any template resets, ensure you copy your existing macro code into a basic text editor like Notepad so you do not permanently lose your scripts.

Solution 1Recommended

Reset the Normal.dotm Template

Deleting and regenerating the global template file can resolve underlying corruption that triggers the H80070057 error in the VBA editor.

The Normal.dotm file serves as the core template for all new Word documents. If this file becomes corrupted, it can cause catastrophic failures within the Visual Basic module, rendering macros inaccessible.

1
Backup Existing Macros

Open Microsoft Word and press Alt+F11 to open the Visual Basic Editor. Copy your existing macro code and paste it into Notepad as a backup.

2
Close Word

Completely exit Microsoft Word and close any other running Microsoft Office applications.

3
Locate and Delete Normal.dotm

Navigate to your system's template folder and either rename or delete the existing Normal.dotm file.

4
Restart and Restore

Restart Microsoft Word. A fresh Normal.dotm file will be generated automatically. Press Alt+F11 to open the Visual Basic Editor and paste your saved macro code back in.

Reset the Normal.dotm Template
Finding the Template Folder: You can quickly find the Normal.dotm file by pressing Win + R, typing %appdata%\Microsoft\Templates, and pressing Enter.
Free Microsoft Office alternative

Experience seamless document creation with WPS Office

If you frequently encounter system errors or macro issues in Microsoft Word, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with familiar formatting tools and a smooth user experience.

  1. 1. Install WPS Office: Download and run the free installer from the official WPS website.
  2. 2. Open Your Documents: Launch WPS Writer and open your existing Word documents seamlessly without losing formatting.
  3. 3. Enable Macros (Optional): If you require VBA capabilities, you can enable the VBA module in WPS Office to continue running your existing scripts.
Fully compatible with Microsoft Word (.docx, .doc, .dotm) formats.Advanced versions support VBA macros and extensive developer tools.Lightweight installation with fast launch times and zero bloatware.Free and highly intuitive user interface for seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Where is the Normal.dotm file located in Windows?

The Normal.dotm file is typically located in the hidden AppData folder. You can access it directly by opening the Windows Run dialog (Win + R), typing %appdata%\Microsoft\Templates, and clicking OK.

Why does 'Bring to Front' trigger macro system errors?

This occurs when there is an underlying corruption in the document's drawing layer or the global template. Manipulating shapes can cause conflicts with a corrupted Visual Basic component, throwing the H80070057 system error.

How can I recover macros if I already deleted my template file?

If you did not back up your macro code before deleting Normal.dotm, you may only be able to recover them if you have a recent system backup, or if the macros were specifically saved within an individual .docm file rather than the global template.