OneDrive File Issues

How to Fix Excel File Opening in SharePoint but Not Locally via OneDrive

Ayan MasoodAyan Masood Oct 28, 2026 868 views

Question details

The user needs to fix a specific Excel workbook that functions normally in the SharePoint Online web viewer but fails to open from a local, synchronized OneDrive or SharePoint folder.

How to Fix Excel File Opening in SharePoint but Not Locally via OneDrive
Product
Microsoft Excel, OneDrive, SharePoint Online
Device & OS
not provided
Scenario
Accessing and opening a synchronized Excel workbook locally from a computer after it has been synced via OneDrive or SharePoint.
Observed behavior
The Excel file successfully opens in the web browser through SharePoint Online, but attempting to open the locally synced copy from the OneDrive folder fails, indicating local file corruption or cache issues.
Before you start

Ensure your OneDrive sync client is up to date and check if other Excel files in the same folder open normally to confirm the issue is isolated to a specific workbook.

Solution 1Recommended

Recreate the Workbook from the Online Version

Since the local file might be corrupted, copying its contents from the working web version into a brand-new workbook bypasses the local corruption.

When an Excel file becomes corrupted during synchronization, the server often retains a healthy version that is accessible via the web. Transferring this clean data to a new file can restore local functionality.

1
Open in SharePoint browser

Navigate to SharePoint Online in your web browser and open the problematic Excel file in the Excel web viewer.

2
Create a new workbook

Open the desktop Excel application and create a completely blank workbook.

3
Copy and paste data

Copy the data, formulas, and formatting from the online browser view and paste them into your new local workbook.

4
Save to sync folder

Save the new workbook to your synchronized SharePoint or OneDrive folder using a slightly different name.

5
Test the new file

Close the file and attempt to open it again from your local synced folder to verify it works correctly.

Recreate the Workbook from the Online Version
Verify Formatting and Macros: Before deleting the old corrupted workbook, verify that all formulas, external links, cell formatting, and macros have carried over correctly to the new file.
Free Microsoft Office alternative

Use WPS Office to Open Your Spreadsheets Seamlessly

If Microsoft Excel is repeatedly failing to open your synchronized files due to complex cache or sync issues, consider trying WPS Office. It provides a lightweight, highly compatible alternative that handles standard spreadsheet formats flawlessly.

  1. 1. Download and Install WPS Office: Get the free WPS Office installer from the official website and install it on your device.
  2. 2. Locate the Synced File: Navigate to your local OneDrive or SharePoint folder where the problematic file is stored.
  3. 3. Open with WPS Spreadsheet: Right-click the Excel file, select 'Open with', and choose WPS Spreadsheets to bypass Office-specific errors.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight architecture ensures fast opening of local files without heavy cache conflicts.Familiar user interface requires no learning curve when switching from Microsoft Office.Built-in cloud syncing capabilities for reliable cross-device file management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel file work online but not locally on my computer?

This typically happens when the local copy of the file becomes corrupted during the OneDrive synchronization process, or if there is a conflict within the Office Document Cache. The web version works because it accesses the healthy file directly from the SharePoint server.

How can I tell if my OneDrive sync is causing the problem?

If other Excel files in the exact same synced folder open perfectly, the issue is likely isolated to that specific workbook's local copy. If none of the synchronized files can be opened, your OneDrive client may need to be restarted or reset.

Will I lose my macros when copying data to a new workbook from the browser?

Yes. If you copy data using the SharePoint web browser viewer, VBA macros will not be transferred. To preserve macros, you must download a fresh local copy of the file first, or manually export and import the VBA modules using the desktop application.