OneDrive File Issues

Fix OneDrive Says Excel File Is Locked for Editing

Amos GikundaAmos Gikunda Oct 23, 2026 869 views

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.

How to Fix OneDrive Saying an Excel File is Locked for Editing
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.
Before you start

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.

Solution 1Recommended

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.

1
Close the workbook

Ensure that Microsoft Excel is completely closed on your computer, smartphone, tablet, and web browser.

2
Access OneDrive settings

Click the OneDrive cloud icon in your taskbar or menu bar, click the gear icon (Help & Settings), and select 'Settings'.

3
Unlink your account

Navigate to the 'Account' tab and click on 'Unlink this PC' to sign out of your OneDrive account.

4
Wait and sign back in

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.

Close the file on all devices and sign out of OneDrive
Server Delay: It may take a few minutes for the Microsoft servers to register that the file has been closed. Patience is key before signing back in.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS Office website to download the free application and complete the quick installation.
  2. 2. Open Your Files: Launch WPS Spreadsheets and open any existing Excel files directly—no format conversion required.
  3. 3. Edit Without Hassle: Enjoy smooth, fast editing and save your documents locally or to WPS Cloud for safe keeping.
Seamless compatibility with Microsoft Excel (.xlsx and .xls) formatsBuilt-in cloud sync alternatives to prevent file locking issuesLightweight installation that is fast to launch on any deviceFree to use with a familiar, intuitive user interface for instant productivity
microsoft office alternative - wps office

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.