Attempting to collaborate on a spreadsheet only to be stopped by the warning File in Use: [Filename] is locked for editing by another user forces you to open the workbook in read-only mode or create a duplicate copy. This lock mechanism is intended to prevent concurrent write collisions on shared network drives. However, orphaned lock files (owner files), lingering Excel background processes, or unresponsive SMB server sessions frequently maintain phantom locks long after colleagues have closed the file. Clearing these locks restores full editing permissions.
Identify and Terminate Lingering Background Excel Processes
When an unexpected Excel crash occurs, the application process (excel.exe) may continue running invisibly in the background, maintaining an active operating system lock on the file handle.
- Press Ctrl + Shift + Esc to launch Windows Task Manager.
- Switch to the Processes or Details tab.
- Look for any instances of Microsoft Excel.
- Select each lingering process and click End task.
- Reopen the shared workbook to check if the file lock has released.
Delete Orphaned Temporary Owner Lock Files
Whenever an Excel workbook is opened, Office automatically creates a hidden temporary file prefixed with a tilde and dollar sign (e.g. ~$Workbook.xlsx) in the identical folder. If Excel closes abnormally, this lock file remains on disk, falsely signalling that the document is still open.
- Open File Explorer and navigate to the directory where the locked spreadsheet is stored.
- Click View in the top ribbon, select Show, and ensure Hidden items is checked.
- Scan the directory for a faint file icon matching the name of your spreadsheet with the prefix
~$. - Ensure no colleagues are legitimately editing the file, then right-click the owner file and select Delete.
- Open the original workbook; write access will be restored immediately.
Close Open File Handles via Windows Server Management
If the workbook resides on a centralised corporate network file share or SMB server, administrative tools allow you to disconnect orphaned file locks cleanly.
- On the file server host machine, press Windows Key + R, type
compmgmt.msc, and press Enter to open Computer Management. - In the left tree, expand System Tools > Shared Folders > Open Files.
- Locate the locked Excel file in the list of active server connections.
- Right-click the corresponding file handle and select Close Open File.
- This safely severs the unresponsive SMB session and permits new read-write locks without requiring a server reboot.
Configure OneDrive and SharePoint Co-authoring Parameters
For organisations storing spreadsheets in Microsoft 365 cloud repositories, lock conflicts indicate desynchronised cloud sync clients.
- Ensure all collaborators are opening the workbook using the AutoSave toggle enabled in modern Office desktop versions.
- Right-click the OneDrive blue cloud icon in the taskbar notification area, select Settings > Office tab, and ensure Use Office applications to sync Office files that I open is activated.
- Have users verify whether a web browser tab still holds the document open in Excel for the Web.