How to Fix Office Files Locked or Open for Editing on Shared Drive
Question details
Users are unable to edit Microsoft Office files stored on a shared drive or SharePoint because the files appear as read-only or are locked by another user.

- Product
- Microsoft Office 2019, SharePoint
- Device & OS
- not provided
- Scenario
- Opening and attempting to edit a shared document on a network drive or a SharePoint document library.
- Observed behavior
- The file opens in read-only mode, or a prompt indicates the file is locked for editing by another user, even when the file appears to be closed by everyone.
Verify whether the affected file is stored on a local network drive, a file server, or a SharePoint Online document library, as the troubleshooting steps differ based on the storage environment.
Force Close Hidden Background Office Processes
Use this solution if a file remains locked on a local or network drive because a hidden instance of Word or Excel failed to close properly.
When an Office application crashes or closes abruptly, a background process may continue running, keeping a lock on the file. Ending these hidden processes will release the lock and allow you to edit the document.
Press Ctrl + Shift + Esc on your keyboard to open the Windows Task Manager.
Scroll through the 'Processes' tab or 'Details' tab to find WINWORD.EXE or EXCEL.EXE.
Right-click the process and select 'End task' to force the application to close completely. Repeat this for any other duplicate Office processes.
Navigate back to the shared drive and open the file again to confirm the read-only lock has been removed.

Check In Files on SharePoint Online
Use this method if your files are stored in a SharePoint document library and mandatory check-out is enabled.
Remove Stale Lock Files from the Network Server
If standard troubleshooting fails on a network file server, a stale temporary owner file may need to be manually deleted.
Avoid File Locking Issues with WPS Office Collaboration
Tired of dealing with locked files, hidden background processes, and complex SharePoint check-out errors? WPS Office is a free, lightweight alternative that offers seamless cloud collaboration, ensuring multiple users can work without encountering frustrating file locks.
- 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions to set up WPS Office.
- 3. Start Collaborating: Open your shared files in WPS Office and use the built-in cloud sharing features to collaborate without file locks.

Frequently Asked Questions
Why does Office say my file is locked when no one else is using it?
This usually happens when an Office application crashes or is closed improperly. It can leave a hidden background process (like WINWORD.EXE) running on your computer, or leave a temporary hidden lock file on the network drive.
How can I tell who has the shared Excel file locked on the network?
The locked file prompt will often display the username of the person who has the file open. If it does not, an IT administrator can use the 'Shared Folders' MMC snap-in on the file server to view exactly which user session holds the open file lock.
Does SharePoint automatically check files back in when I close them?
No. If a SharePoint document library is explicitly set to require files to be checked out for editing, closing the document does not automatically check it back in. The user must manually select the Check In option to restore edit access for others.




