How to Fix Excel Runtime Error 1004: This File Is Locked
Question details
Users encounter Runtime Error 1004 stating the file is locked when attempting to save an Excel workbook located on a shared network drive.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Saving an existing Excel workbook that is stored on a shared network drive or folder.
- Observed behavior
- Excel displays Runtime Error 1004 indicating the file is locked, preventing the user from saving changes, even if the file opened normally and other users can edit it.
Ensure all other users on your network have completely closed the shared Excel file, and verify that your computer has a stable, active connection to your organization's network drive.
Verify Network Folder Permissions and Test Locally
Determine if the error is caused by insufficient network folder permissions rather than the file itself by isolating the workbook on a local drive.
When Excel saves a file, it creates a temporary file and deletes the original one. If you only have 'Read' and 'Write' access to a network folder but lack 'Modify' or 'Delete' permissions, Excel cannot complete the save process, resulting in a locked file error.
Open the shared network folder, right-click the affected Excel workbook, select 'Copy', and paste it onto your local Desktop.
Open the local copy of the workbook in Excel, make a small edit to a cell, and click the 'Save' icon or press Ctrl + S.
If the local file saves successfully, the issue lies with network permissions. Contact your IT administrator and request 'Modify' and 'Delete' permissions for the specific network folder housing the files.

Remove Workbook Protection and Clear Phantom Locks
Ensure the workbook isn't password-protected or locked by an invisible background instance of Excel.
Use WPS Office for Seamless Network File Editing
If Excel consistently locks your network files with Runtime Error 1004, consider switching to WPS Office. It provides robust compatibility with Microsoft formats and smooth handling of shared files, all within a lightweight, free suite.

Frequently Asked Questions
Why does Excel say my file is locked when I am the only one using it?
This usually happens if Excel crashed previously and left a hidden background process running, or if the network server hasn't properly released the file lock from a previous session. Using Task Manager to end all Excel processes often clears this phantom lock.
Can folder permissions cause Runtime Error 1004?
Yes. When you save a file, Excel temporarily creates a new background file and attempts to delete the old one. If you only have 'Read' and 'Write' access but lack 'Delete' or 'Modify' permissions on the network folder, Excel fails to replace the file, triggering Error 1004.
Does checking 'Read-only' on a network folder cause this Excel error?
Yes, if the shared folder or the file properties are set to read-only at the system level, Excel cannot overwrite the existing file. You must right-click the folder, go to Properties, and ensure the 'Read-only' attribute is unchecked.




