Fix Excel Errors When Saving a Macro-Enabled Workbook to OneDrive
Question details
The user encounters an error when saving a large macro-enabled workbook (XLSM) in Excel due to a OneDrive connection interruption, causing the file to potentially disappear from the cloud.

- Product
- Microsoft Excel, OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to save a large XLSM file to a synced OneDrive folder after a temporary network or sync drop.
- Observed behavior
- Excel reports an error during saving, the file disappears from the OneDrive directory, and OneDrive version history options may become disabled.
Do not close the Excel application if your workbook is still open on the screen, as closing it before creating a safe local backup will result in permanent data loss.
Save a Local Copy and Check Version History
Immediately save your current progress to a local drive to bypass cloud sync failures and prevent data loss.
Since the OneDrive connection was interrupted, the cloud version of the file might be corrupted or missing. Your immediate priority is saving the locally cached data.
With the workbook still open in Excel, go to File > Save As, choose 'This PC' or 'Browse', and save the file directly to your Desktop with a new file name.
Open your web browser, navigate to OneDrive online, and sign in with your Microsoft account to check if a recent version exists in the cloud.
If the file is visible in the online interface, right-click it, select 'Version history', and restore the last known good version.

Open a Microsoft 365 Support Request
If version history is disabled and the file is missing from OneDrive, server-side troubleshooting by a Microsoft administrator is required.
Try WPS Office for Reliable Spreadsheet Management
If you frequently experience cloud sync errors or performance issues with large workbooks in Microsoft Excel, consider switching to WPS Office. It provides robust handling for heavy spreadsheets, native macro support, and secure local saving options—completely free.
- 1. Download and Install: Get the free version of WPS Office from the official website and install it on your computer.
- 2. Open Your Workbook: Launch WPS Spreadsheets and easily open your existing XLSM and XLSX files.
- 3. Edit and Save Safely: Edit your macros and large datasets smoothly, and save locally or to your preferred cloud drive without errors.

Frequently Asked Questions
Why did my Excel file disappear from OneDrive?
When a sync interruption occurs while saving a large file, OneDrive may fail to process the incomplete upload, causing the file to temporarily disappear from the cloud directory while Excel retains the cached version in memory.
Can I recover an XLSM file if version history is disabled?
Yes, if the file is still open on your screen, you can use the 'Save As' function to save a fresh copy to a local directory like your Desktop. If it was closed, you may need an administrator to check the Microsoft 365 recycle bin.
How can I prevent saving errors with large macro-enabled workbooks?
To avoid sync conflicts, consider pausing OneDrive syncing before saving massive XLSM files, saving the file to a local folder first, or waiting until your network connection is perfectly stable before initiating a cloud save.




