Your changes could not be saved to ‘filename.xlsm’ because of a sharing violation. Try saving to a different file.


Guest Blogger:  Dustin Yonker

It has come to our attention of a potentially new issue where users receive one or multiple error messages during the save process of Excel files with macros.  All reported cases have been .xlsm file extensions and the errors mention a “sharing violation.”  If you are being impacted by this, we are noticing that some of these are involving the Anti-Virus with a focus on the scanning process.

As a test or temporary work-around, adding the .xlsm extension to the excluded list for scanning or disabling the real-time scanning has been a potential work-around until more information is found.  Download the latest AV definitions and if that doesn't work, reach out to your AV provider to see if they have an update.

The following are the error messages we have seen thus far:

Error #1:

“Your changes could not be saved to ‘filename.xlsm’ because of a sharing violation. Try saving to a different file.”

AND

“When saving a file, a sharing violation can be caused by the way an antivirus application interacts with Microsoft Office. Check with your antivirus provider to make sure that the current version of the application including updates, is installed. The antivirus provider might also have information or solutions for sharing violation issues.”

 

 

Error #2:

“The file format and extension of ‘filename/filename’ don’t match. The file could be corrupted or unsafe. Unless you trust its source, don’t open it. Do you want to open it anyway?”

 

 We will update this blog as more information becomes available on this topic but wanted to give an early heads up to help.

Comments (6)

  1. Dale says:

    I have come across this quite a few times now and I have seen others who have experienced the same bug. As mentioned, it is always with ‘.xlsm’ files. We use ‘trend micro’ and ensure it is updated frequently.

  2. Sarah says:

    Is there a fix for this yet? Updated AVG last week and following restart all MS Office files can no longer be saved and need to be re-named. Old files can not be deleted or moved. Causing havoc. Awful awful disruption to everyday work.

  3. Mike says:

    I, and some of my colleagues/customers have begun experiencing this issue as well. Also only with .xlsm files.

  4. Aru says:

    This is the same error, an user is facing in one spreadsheet which is kept on the network drive. This excel sheet is shared to multiple users. There are other similar excel sheet kept in same path but the problem occurs with only this excel sheet.

    Tried couple of ways to fix it but no luck.

    Any help is appriciated

  5. Brad says:

    I have this exact issue. I have also found that when I first open the “xlsm” file, I get a notice that the file is in use and if I choose read only notify, then this works OK for a little while before I wind up with the error described in this blog. If I choose notify, I get a notification within 30 seconds or so that the file is available. I get this even though I am on a stand alone computer with the file locally and no shares. I have Windows 10, Office 2010 and Windows Defender.

  6. Brad says:

    I want to mention that I have the latest virus definitions and applied a file exclusion as specified in the blog in Defender. This resolved my issue but it is certainly not a long term fix. Please advise when a permanent fix will be available.

Skip to main content