Fix OneDrive Says Excel File Is Locked for Editing
Question details
Users are unable to modify their Excel documents because OneDrive incorrectly reports that the workbook is already locked for editing by another user or session.

- Product
- Microsoft Excel, OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to open, edit, or sync an Excel workbook stored on OneDrive.
- Observed behavior
- OneDrive displays an error stating the file is locked for editing, even when the file is completely closed on all devices and no other user has access.
Verify that you have a stable internet connection and ensure the file is not currently open in another browser tab or actively being edited by a colleague.
Close the file on all devices and sign out of OneDrive
Force the OneDrive server to release the editing lock by terminating all active sessions and syncing processes.
Often, a background process or an improper shutdown causes OneDrive's servers to think the file is still open. Clearing all connections to your account forces the server to drop the lock.
Ensure that Microsoft Excel is completely closed on your computer, smartphone, tablet, and web browser.
Click the OneDrive cloud icon in your taskbar or menu bar, click the gear icon (Help & Settings), and select 'Settings'.
Navigate to the 'Account' tab and click on 'Unlink this PC' to sign out of your OneDrive account.
Wait about 10 to 15 minutes for the server-side lock to clear, then sign back into OneDrive and attempt to open your Excel file again.

Replace the cloud file with a local copy
Bypass the stuck server lock by duplicating your work and replacing the locked file in your OneDrive folder.
Edit Excel Files Seamlessly with WPS Office
Tired of syncing errors and locked files disrupting your workflow? WPS Office offers a powerful, lightweight alternative to Microsoft Office. Enjoy a familiar interface and robust spreadsheet capabilities without the hassle of constant file locks.
- 1. Download and Install: Visit the official WPS Office website to download the free application and complete the quick installation.
- 2. Open Your Files: Launch WPS Spreadsheets and open any existing Excel files directly—no format conversion required.
- 3. Edit Without Hassle: Enjoy smooth, fast editing and save your documents locally or to WPS Cloud for safe keeping.

Frequently Asked Questions
Why does OneDrive say my file is locked when I am the only user?
This happens when background sync processes get stuck or if the file was closed improperly (such as during a network drop or crash). The server retains an active session lock thinking you are still editing it.
How long does a OneDrive server lock usually last?
If all devices have the file completely closed, the server lock typically times out and clears itself within 10 to 30 minutes.
Can I prevent locked file errors in the future?
Yes. Ensure you are using the modern .xlsx format and have the 'AutoSave' feature enabled. This allows for co-authoring and reduces the strict file locking mechanisms used for older file types.




