Fix Excel Freezing When Closing Due to OneDrive Sync
Question details
The user experiences Microsoft Excel hanging or becoming unresponsive when attempting to close locally saved workbooks while OneDrive is running.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Closing locally saved Excel files while OneDrive background synchronization is active.
- Observed behavior
- Excel freezes during the closing process, often due to account conflicts between Office and OneDrive, file permissions, or failed change merging.
Verify that your local network connection is stable, and temporarily pause your OneDrive synchronization to prevent data loss while troubleshooting.
Verify and Align Connected Office Accounts
Ensure that Excel, OneDrive, and SharePoint are all using the exact same work or school account to prevent synchronization conflicts.
Conflicting accounts are the most common reason Excel struggles to merge changes or release file locks upon closing. Aligning these credentials resolves background authentication issues.
Launch Microsoft Excel and navigate to the 'File' menu, then click on 'Account' at the bottom left.
Under 'User Information' and 'Connected Services', verify the email address used for Office, OneDrive, and SharePoint.
If the accounts differ, click 'Sign Out' for all accounts. Restart Excel, then sign back in using a single, unified work or school account.

Temporarily Disable Security Software
Third-party antivirus or privacy software might block OneDrive from accessing the Excel file, causing the application to hang.
Contact Microsoft 365 Administrator
If the issue persists in a business environment (like Office 2019), it may require administrative intervention for SharePoint permissions or advanced account syncing policies.
Experience Fast, Conflict-Free Spreadsheets with WPS Office
If Microsoft Excel continues to hang or freeze due to complex OneDrive synchronization issues, switching to WPS Office provides a stable, lightweight, and hassle-free alternative. It works seamlessly with your existing local files without forced background syncing interruptions.

Frequently Asked Questions
Why does Excel only freeze when I am closing the file?
When you close a file, Excel attempts to finalize changes, release local file locks, and trigger OneDrive to upload the latest version. If there is an account conflict or network delay, this handshake process hangs the application.
How can I check if OneDrive is the actual cause of Excel hanging?
You can isolate the issue by clicking the OneDrive cloud icon in your taskbar, selecting the gear icon, and clicking 'Pause syncing'. If Excel closes normally while syncing is paused, OneDrive is the root cause.
Does this issue happen with all versions of Microsoft Office?
This synchronization freezing issue is most commonly reported in Office 2019 and Microsoft 365 enterprise environments where strict SharePoint permissions and business accounts interact.




