Collaborating on spreadsheets stored on local network drives, shared server folders, or OneDrive is standard for modern businesses. However, opening a workbook frequently presents an unwelcome roadblock: File in Use. Workbook.xlsx is locked for editing by ‘Another User’ (or yourself). Open ‘Read-Only’ or click ‘Notify’ to receive an alert when the document is available.
This locking dialogue occurs when Microsoft Excel generates a hidden temporary lock file (known as an owner file, e.g. ~$Workbook.xlsx) when a user opens a spreadsheet. If Excel crashes unexpectedly, a user loses Wi-Fi connectivity while editing, or the Server Message Block (SMB) file leasing protocol on your Windows Server fails to release the session handle, the spreadsheet remains permanently locked in read-only mode. Use the steps below to release the file lock.
Terminate Orphaned Excel Background Processes
If Excel crashed earlier during the day, the graphical interface may have closed while a headless EXCEL.EXE process remains active in memory, holding an exclusive file handle:
- Press Ctrl + Shift + Esc to launch Task Manager.
- In the “Processes” tab, look under both “Apps” and “Background processes” for any instance of Microsoft Excel.
- Select the process and click End task.
- If the file is hosted on a shared network drive, have the colleague cited in the “locked by” prompt perform this same check on their computer.
- Reopen the workbook to verify that full read-write privileges are restored.
Delete Hidden Temporary Owner Lock Files
When Excel opens a spreadsheet, it creates a small, hidden temporary file prefixed with a tilde and dollar sign (~$) in the exact same directory. If Excel terminates abnormally, this lock file is left behind, tricking future sessions into believing the file is still in use:
- Close Excel completely.
- Open File Explorer and navigate to the directory containing the locked workbook.
- Click View > Show and ensure Hidden items is checked.
- Look for a ghost file sharing the name of your spreadsheet with a leading
~$prefix (e.g.~$FinancialReport.xlsx). - Select the
~$file and delete it. (Do not delete the primary.xlsxworkbook). - Launch the workbook normally.
Close Open File Sessions on Windows Server
If the spreadsheet resides on a centralized Windows File Server or Network Attached Storage (NAS), network administrators can release hanging SMB file locks instantly:
- On the file server, press Windows + R, type
compmgmt.msc, and press Enter to open Computer Management. - In the left console tree, expand System Tools > Shared Folders > Open Files.
- In the middle pane, locate the locked spreadsheet by its file path or name.
- Right-click the entry and select Close Open File.
- This immediately severs the stale client handle and unlocks the file for all enterprise users.
Disable Excel File Explorer Preview Pane
As with PDF documents, enabling the File Explorer Preview Pane causes the Windows thumbnail handler to lock Excel files upon simply clicking their icons:
- In File Explorer, go to View > Show.
- Uncheck Preview pane.
- This prevents the operating system shell from creating temporary read-only locks on highlighted workbooks.