Fix OneDrive Excel File 'In Use' Error When Opening in Another App
Question details
The user needs to import an Excel file stored on OneDrive into an external application, but is blocked by a file lock error.

- Product
- Microsoft Excel, OneDrive
- Device & OS
- Windows 10
- Scenario
- Attempting to import or access a OneDrive-synced Excel file using a third-party or external application.
- Observed behavior
- The external application fails to import the Excel file, returning an error message stating that the file is currently 'in use' or locked by Excel.
Ensure all recent changes to your workbook have been fully saved and check your system tray to verify that OneDrive has an active internet connection to complete any pending synchronizations.
Close Excel and Wait for OneDrive Synchronization
The most common reason for the 'in use' error is that Excel retains a temporary file lock until the application is fully closed and OneDrive finishes syncing the document to the cloud.
External applications often require exclusive access to a file to import its data safely. If Excel is still running or OneDrive is actively uploading changes, the file remains locked by the system.
Save your work manually, then completely close the Microsoft Excel application. Simply closing the workbook window may not be enough; ensure the entire program is exited.
Click the OneDrive cloud icon located in the Windows taskbar system tray. Wait until the status displays 'Up to date', indicating the file is no longer being processed.
Open your external application and reattempt the import process. The file should now be free from any locks.

Use a Local Copy for the Import
Bypassing OneDrive's live synchronization by using a localized, unsynced copy of the file immediately prevents locking conflicts with external apps.
Force Close Duplicate Excel Background Processes
Sometimes Microsoft Excel encounters a glitch where it opens the file twice or remains running invisibly in the background, keeping the file perpetually locked.
Experience Hassle-Free Spreadsheet Management with WPS Office
If you frequently encounter frustrating file locks, ghost processes, or syncing errors with Microsoft Excel, consider switching to WPS Office. It provides a highly compatible, fast, and free alternative without the heavy background services that cause locking issues.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free suite and install it on your Windows device.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Excel file directly from your local drive or cloud storage.
- 3. Edit Without Conflict: Enjoy lightweight, hassle-free editing without restrictive background lock conflicts.

Frequently Asked Questions
Why does OneDrive say my Excel file is in use when the program is completely closed?
This commonly occurs if OneDrive is still actively syncing the file to the cloud or if a 'ghost' Excel process is stuck running in the background. You can check your Windows Task Manager to manually terminate hidden Excel processes.
Can multiple users edit an Excel file on OneDrive at the same time without locking it?
Yes, Microsoft offers a 'co-authoring' feature for simultaneous editing. However, if a third-party application attempts to access or import the file via the local file system during this time, the system will still register the file as 'in use' and block the import.
How do I know if OneDrive has finished syncing my Excel document?
Click the OneDrive cloud icon in your Windows taskbar system tray. It will display 'Up to date' when all files are fully synced. If it shows rotating arrows, synchronization is still in progress.




