How to Fix Excel Runtime Error 1004: Mail System Failure
Question details
The user needs to resolve an Excel issue where the application displays Runtime Error 1004, indicating that the mail system has failed and the mail installation needs to be checked.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Attempting to send an email or trigger a mail-related VBA macro directly from within Microsoft Excel.
- Observed behavior
- Excel interrupts the workflow and throws Runtime Error 1004, displaying a prompt that states the mail system has failed and advising the user to check the mail installation.
Before proceeding with the repair process, ensure that you have saved all open Excel workbooks and completely closed Microsoft Excel, as well as any other active Office applications.
Repair the Microsoft Office Installation
Use the built-in Windows repair tool to fix corrupted Microsoft Office components that are causing the mail system failure in Excel.
Runtime Error 1004 related to mail systems usually happens when the Office installation files are damaged or missing components required for email communication. Running a repair operation will restore these necessary files without affecting your personal documents.
Press the Windows key, type 'Apps and Features' (or 'Installed apps' on Windows 11) in the search bar, and hit Enter to open your system settings.
Scroll through the application list to find your Microsoft Office installation. Click on it (or click the three dots next to it) and select 'Modify'.
If you have a Click-to-Run installation, select 'Online Repair' and then click 'Repair'. If you are using an MSI-based installation, select 'Repair' and click 'Continue'.
Follow the on-screen instructions to let Windows fix the Office files. Once the process is fully complete, restart your computer if prompted to apply the changes.

Experience an Error-Free Spreadsheet Workflow with WPS Office
If you frequently encounter complex VBA errors or installation corruptions in Microsoft Excel, consider switching to WPS Office. It provides a stable, lightweight, and highly compatible spreadsheet experience without the heavy system requirements.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer for your operating system.
- 2. Install and Launch: Run the installer and follow the simple on-screen prompts. Once finished, launch the WPS Spreadsheet application.
- 3. Open Your Spreadsheets: Drag and drop your existing .xlsx files directly into WPS Spreadsheet to continue working seamlessly without any format loss.

Frequently Asked Questions
What exactly does Runtime Error 1004 mean in Excel?
Runtime Error 1004 is a generic code in Excel commonly associated with VBA (Visual Basic for Applications) macro failures. When accompanied by the 'Mail System Failure' message, it specifically indicates that Excel cannot communicate with your computer's default email client, often due to corrupted Office files.
Can I fix the mail system failure by setting a default email app?
Yes. Sometimes this error is triggered because Windows does not have a default email application properly assigned. You can try fixing this by navigating to Windows Settings > Apps > Default apps, and explicitly setting a program like Outlook or Windows Mail as your default email client.
Will repairing Microsoft Office delete my personal files or Excel data?
No. Running an Online Repair or a standard Repair from the Windows settings only fixes the application's program files, background services, and registry keys. Your personal spreadsheets, documents, and other user data will remain completely safe and unaffected.




