Forum Discussion

InLuaFlowers's avatar
InLuaFlowers
Copper Contributor
Jun 29, 2025

Save Failed: There was an internal error..

Hello,

I developed a python script in an IDE and it always worked. I ported it to python in excel and it works. However, I frequently get this error. Often it is after I save a change that has some syntax problem. Despite removing the lines that caused the syntax error, suddenly any change doesn't work.

I could remove all of my code and write print('hello world') and I will get the save failed error.

I have tried:

  • Pasting in old code from older, valid versions
  • Removing all code and putting print('hello world')
  • Updating Excel
  • Repairing Excel
  • Reinstalling Excel
  • Restarting my computer
  • Updating my computer
  • Putting code in a new cell
  • Putting code in a new work sheet
  • Putting code into new workbook (this works but not forever, if the error happens again, I have to create a new workbook and that is incredibly inconvenient

Link to offending workbook:
https://1drv.ms/x/c/05ca45c91ad09cb7/EeQGntvd3sVFmieT7DBidP8B1z9Ga9d_BQg_cZ2VryoRqg?e=7IuKrw

1 Reply

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    What you might try       

    Clear all cell contents manually (not just delete key)      

    Rebuild workbook fresh              

    Disable AutoSave temporarily   

    Restart Excel after errors

     

    What might not work

    Just deleting broken code

    Re-saving broken file repeatedly

    Reinstalling Excel (usually doesn’t help)

    Copying old code from corrupted files

Resources