Microsoft should FIX - "Errors were detected while saving (filename)"

Asha Kanta Sharma 81 Reputation points
2020-07-27T18:53:59.793+00:00

Microsoft must FIX this decade long bug with appears out of nowhere and has ruined a lot of months of work of my life. Please fix the below error message. It is even appearing in latest Office 2019.

"Errors were detected while saving (filename). Microsoft excel may be able to save the file by removing or repairing some features. To make the repairs in a new file click Continue. To cancel saving the file click Cancel."

THIS ERROR/BUG HAS RUINED MY LIFE PROFESSIAONLLY.

FIX IT WITHOUT FURTHER DELAY...

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,639 questions
{count} votes

22 answers

Sort by: Most helpful
  1. FEDERICO GALLERANI 156 Reputation points
    2021-09-23T10:31:22.637+00:00

    Well known and really anoying bug. It seems to generate when using the VBA editor and deleting some worksheet that is referenced by some formula.

    I have resolved (most of the times) by completely removing the vba project using this procedure:

    1. Create a backup copy of the file (from file explorer)
    2. Change file extension from .xlsm to .zip
    3. Open the .zip file and locate the file /xl/vbaProject.bin
    4. Remove this file
    5. Change the file extension back to .xlsm
    6. Open normally the modified file. It should not show the error and save without problems

    Obviously in this way you will loose all the VBA macros in the Workbook, so you have to re-import them from the last (hopefully) working version of your file.

    31 people found this answer helpful.

  2. Muhammad Shehzad 26 Reputation points
    2021-08-20T11:27:33.417+00:00

    @Micheal McMahon I have fixed my error:
    You have to make sure that the language you have opted for as default in your Excel should be the one you have set as your default language in the windows setting

    Follow these steps to check.

    1. Open Excel> Click on File > Option > Language and check your default language, normally it will be English US.
      125056-22.jpg
    2. Open Windows Setting > Time and Language > Language > Check your Regional Format, it will be the English US by default.
    3. Now scroll down and check your preferred languages and make sure that the same language format is up in the list.
      125082-33.jpg

    Hope it is helpful

    5 people found this answer helpful.

  3. Simon Gevcen 20 Reputation points
    2023-04-27T12:51:59.5866667+00:00

    [SOLVED] Based on the procedure of @FEDERICO GALLERANI , here is what I did that solved my problem.

    1. Copy your file, and rename it NEW
    2. Change file extension of this NEW version from .xlsm to .zip
    3. Open the .zip file and locate the file /xl/vbaProject.bin
    4. Remove this file
    5. Change the file extension back to .xlsm
    6. Open both OLD and NEW versions at the same time.
    7. Open VBA Console
    8. Drag and drop the modules in the NEW file (where we deleted the vba file)

    The file will now work fine.

    4 people found this answer helpful.

  4. Annie 16 Reputation points
    2020-12-07T15:55:20.657+00:00

    @Emily Hua-MSFT I can reproduce this error using Office 365 ProPlus (Build 12527.21330):

    • Start a new Excel spreadsheet, and add a new blank sheet to it.
    • Press Alt-F11 to open the VBA window, then minimise it (I think it will also work if it is closed at this point).
    • Put a number in cell A1 of Sheet 1, and CTRL+C to copy it
    • Start a new Word document and Paste Special, Paste Link: Microsoft worksheet object
    • Switch back to Excel and delete the sheet with the number in it (Sheet 1).
    • Try to save the Excel workbook.

    This same error is causing a real-world issue to a client - although the repro steps are a much simplified version. A fix would be more than appreciated.

    3 people found this answer helpful.
    0 comments No comments

  5. Emily Hua-MSFT 27,526 Reputation points
    2020-07-28T08:59:21.053+00:00

    Hi AshaKantaXharma,

    Does this issue occur with all Excel workbooks? Such as new workbooks?

    I would like to suggest you change your regional language settings in Windows and make English US as default language to have a check.

    Besides, when this issue only appears in some specific workbooks, please check whether there are any features like charts, pivot table created in old versions which are not compatible with Office 2019 now.

    You may also refer to try the workarounds and resolutions mentioned in article "How to troubleshoot errors when you save Excel workbooks".

    Any questions, please let me know.

    2 people found this answer helpful.