How to fix Excel’s sharing violation error

Matthew Adams
by Matthew Adams
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

fix Your changes could not be saved to ‘ FileName’ because of a sharing violation

Excel’s sharing violation error dates back to MS Office 2007. That error message states: Your changes could not be saved to ‘ FileName’ because of a sharing violation.

Consequently, users can’t save changes to some of their Excel spreadsheet files when that issue arises. It’s not something new, and Microsoft once had a hotfix package for the error that has now been discontinued. Nevertheless, you can still fix the sharing violation with the resolutions below.

Ad

How can I fix Excel’s sharing violation error?

1. Enable indexing for the file’s folder

  1. Some users have confirmed they‘ve fixed the issue by enabling file indexing for the folder that includes the Excel spreadsheet the error arises for. Open File Explorer with the Windows key + E keyboard shortcut.
  2. Right-click the folder that includes the Excel file the sharing violation arises for and select Properties.
  3. Press the Advanced button.
  4. Select the Allow files in this folder to have contents indexed in addition to file properties checkbox.
    Advanced Attributes window excel file could not be saved because of sharing violation
  5. Click OK on the Advanced Attributes window.
  6. Select the Apply option .
  7. Click the OK button.

If you need additional info on how to enable or disable indexing in Windows 10, check out this handy guide and learn how you can do it.


2. Turn on the Sharing Wizard

  1. Check that the Sharing Wizard is enabled. To do so, open File Explorer.
  2. Click the View tab.The View tab excel file could not be saved because of sharing violation
  3. Press the Options button.
  4. Select Change folder and search options to open the window shown directly below.Folder Options window excel file could not be saved because of sharing violation
  5. Select the View tab.
  6. Select the Use Sharing Wizard checkbox.The View tab excel file could not be saved because of sharing violation
  7. Click Apply to save the new settings.
  8. Click OK to exit the window.

3. Select Save as to rename the file

Try saving the file with an alternative file title. To do that in Excel, click File and Save as. Then enter an alternative title for the file in the text box, and press the Save button.

Save As option excel file could not be saved because of sharing violation


4. Save the file to an alternative folder

Alternatively, try saving the file to a different folder. Select the Save as option. Then select an alternative folder to save it to. Click the Save button.

Save As window excel file could not be saved because of sharing violation


5. Delete files with CCleaner

  1. Some users have said they’ve fixed Excel’s sharing violation error by erasing files with CCleaner.
  2. Click the green Download button on CCleaner’s webpage to get the installer for it.
  3. Open CCleaner’s setup wizard to install the utility.
  4. Open the CCleaner window.
  5. Select all the checkboxes on the Windows tab.CCleaner window excel file could not be saved because of sharing violation
  6. Click the Analyze button.
  7. Click Run Cleaner and Continue to erase the files.

Need more info on how to clean your PC with CCleaner? Take a look at this useful article.


6. Uninstall third-party antivirus utilities

The sharing violation error can also be due to some third-party antivirus utilities. So, uninstalling third-party utilities might resolve the issue. You can do that with the standard Windows uninstaller, but that will also leave behind residual files.

Press the Windows key + R hotkey and enter ‘appwiz.cpl’ in Run to open the Windows uninstaller. Then you can uninstall the antivirus software from there.

Windows uninstaller excel file could not be saved because of sharing violation

Most of the bigger antivirus utilities have their own exclusive uninstaller tools, listed within a Microsoft forum post, with which you can more thoroughly remove them. Download the uninstaller tool for the antivirus software. Then open that utility to uninstall the antivirus software with it.

Ad

Want to remove any software leftovers on Windows 10? Follow this guide and learn how to do it in no time.


Those resolutions will probably fix Excel’s sharing violation for most users.

If you have any other questions or suggestions, don’t hesitate to leave them in the comments section below and we’ll be sure to check them out.

RELATED ARTICLES TO CHECK OUT: 

Ad
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!