Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Fix Runtime Error 1004 in Excel

    How to Fix Runtime Error 1004 in Excel

    Asmi DhakalBy Asmi DhakalJune 23, 2023 Excel 4 Mins Read

    Excel displays Runtime Error 1004 when the macro you’re running cannot find the information you’re want to access. You may encounter this error as a result of incorrect referencing, or sometimes even when there is a problem in Excel configuration.

    Sometimes, a simple restart can fix this issue. This is if your Excel program has a minor bug or a glitch. I highly suggest you check your code first before you dive into the other fixes.

    What is Causing the Runtime Error 1004 in Excel?

    As I said in the beginning, the Runtime Error 1004 is non-specific. This can make pinpointing the cause a bit challenging. However, in my experience, I have found that it mostly has to do with the referencing inside the code itself. You can go through the list I prepared and see what issue might seem the most relevant to you.

    • Invalid Cell Reference
    • Incorrect File Location
    • Security Policy
    • Corrupt Spreadsheet
    • Outdated Excel Program
    • Interference of Third-Party Applications

    How to Fix Runtime Error 1004 in Excel?

    We will approach this error by identifying and fixing any inconsistency in the code first. Then, we will go more into the configuration error that could potentially trigger the Runtime Error 1004 in Excel.

    Change Referencing

    Say, the macro you created ran well before. Now, however, you get the Runtime Error 1004 every time you wish to execute it. This could be because you renamed the sheet or named range the macro is referencing. Cross-check the macro and the referenced name to make sure this isn’t the issue.

    If you have used relative referencing while referencing a range in your macro, the macro may be trying to extract values from empty cells. I suggest you use absolute referencing when you’re referencing a fixed range to make sure that the macro references only the correct cells.

    Verify the File Location

    If you’re commanding your macro to access a file from a folder, make sure you have entered the name of the folder correctly.

    In most cases, if your macro works perfectly on your device but not your colleague’s, it’s because the file is in a different location on their device. Check for such inconsistency in your macro and run it again.

    Enable Trust Access

    When you disable access to the VBA project model, the macro may not access the information inside the referenced spreadsheet. Check if this setting is enabled from the Trust Center and try running the macro again once you enable it.

    1. Head to File from the menubar.
    2. Navigate to Options > Trust Center.
      Excel Options
    3. Click on the Trust Center Settings button.
      Trust Center Settings Excel
    4. From the sidebar, select Macro Settings.
    5. Under Developer Macro Settings, select the box next to Trust access to the VBA project object model.
      Change Macro Settings Excel
    6. Click OK > OK.

    Uninstall Microsoft Work

    This fix is specific to Microsoft Excel version 2009 and below. Many users have reported encountering the runtime error 1004 when both Microsoft Works and Microsoft Office were installed on their devices. Uninstall Microsoft Work and try running the macro again to see if it resolves the issue.

    1. Open Task Manager (Ctrl + Shift + Esc) and End Task for all running applications.
    2. Use Windows Key + R on your keyboard to open the Run command.
    3. In the search bar, enter appwiz.cpl
      Run Command
    4. Scroll down and locate Microsoft Work.
      Windows Program and Features
    5. Right-click on it and select Uninstall.

    Delete the GWXL97.XLA File

    The .xla files are used by Excel as an add-in to expand the functionality of the application. However, the GWXL97.XLA file can sometimes interfere with the Excel program and result in the runtime error 1004. Try deleting this file and running the macro again.

    1. Open File Explorer (Windows key + E)
    2. Navigate to C:\Program Files\Microsoft Office
      File Explorer Path
    3. Select your Office version > XLSTART.
      Office Folder
    4. Right-click on GWXL97.XLA and choose Delete.

    Open and Repair the Corrupted File

    When a file is corrupted, it lacks the necessary information to make certain features work inside the program. You may also be experiencing the runtime error 1004 if your workbook is corrupted.

    If you’re dealing with a corrupted spreadsheet, then you can use Excel’s built-in feature called Open and Repair to fix this issue.

    1. Head to File > Open.
    2. Select Browse under Other Locations.
      Browse for file in Excel
    3. Navigate to the location your file is saved the select it.
    4. Select the fly-out for Open > Open and Repair.
      Open and Repair Excel
    5. Choose Repair.
    Excel Error
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • What is Causing the Runtime Error 1004 in Excel?
      • How to Fix Runtime Error 1004 in Excel?
        • Change Referencing
        • Verify the File Location
        • Enable Trust Access
        • Uninstall Microsoft Work
        • Delete the GWXL97.XLA File
        • Open and Repair the Corrupted File
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.