Office Apps Crashing

How to Fix Excel Crashes When Opening the Data Model or Refreshing Queries

Chanuka GeekiyanageChanuka Geekiyanage Nov 2, 2026 869 views

Question details

Excel crashes or stops responding when opening a workbook containing a Data Model or when refreshing Power Query connections.

How to Fix Excel Crashes When Opening the Data Model or Refreshing Queries
Product
Microsoft Excel
Device & OS
not provided
Scenario
Working with heavy Excel files containing Data Models, relationships, PivotTables, and Power Query connections.
Observed behavior
The application stops responding, freezes, or crashes entirely after the workbook is saved and reopened.
Before you start

Create a secure backup copy of your Excel file before attempting to migrate data or make structural changes to prevent accidental data loss.

Solution 1Recommended

Reset Used Range and Recreate the Workbook

Checking for an inflated used range and transferring your raw data to a fresh workbook can strip away the hidden corruption causing Excel to crash.

Often, Excel crashes because invisible formatted cells bloat the file's 'used range', overloading memory when queries are refreshed. Rebuilding the file safely strips away this corrupt metadata.

1
Check the Used Range

Open your problematic workbook and press 'Ctrl + End' on your keyboard. If the cursor jumps thousands of rows or columns beyond your actual data, the used range is incorrect and is bloating the file size.

2
Create a Clean Workbook

Open a completely new Excel workbook with fresh worksheets to serve as the stable destination for your data.

3
Transfer VBA Code Safely

If your workbook contains macros, open the Visual Basic Editor, copy your code, paste it into Notepad to strip away corrupt formatting, and then copy it from Notepad into the modules of your new workbook.

4
Migrate Data Without Corruption

Copy the raw data from your old worksheets, paste it into an alternative spreadsheet application (like WPS Spreadsheet) to break Office-specific corrupt metadata links, and then paste it into your new Excel file.

5
Rebuild Connections

Once the clean data is securely in the new workbook, manually recreate your Data Model and Power Query connections.

Reset Used Range and Recreate the Workbook
Data Safely Restored: Using Notepad and a third-party spreadsheet tool as intermediaries guarantees that corrupt background elements are not carried over into your new file.
Free Microsoft Office alternative

Experience Stable Data Processing with WPS Office

If Microsoft Excel continues to struggle with crashes, freezes, or memory limitations when handling large datasets, try WPS Office. It provides a lightweight, highly stable environment for handling complex spreadsheets and large datasets without locking up your system.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheet and click 'Open' to select your existing Excel (.xlsx) file.
  3. 3. Edit Seamlessly: Continue analyzing your data, utilizing PivotTables, and managing large datasets in a stable environment.
Highly compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Lightweight application architecture prevents memory overload and crashesSmoothly handles large datasets, complex formulas, and PivotTablesFree to download with an intuitive, familiar user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does pressing Ctrl+End take me to thousands of empty rows?

This happens when Excel registers visually blank cells as part of the active 'Used Range' because they previously contained data or have lingering formatting. This drastically inflates the file size and consumes heavy memory, often leading to crashes when refreshing complex queries.

Can transferring data through Notepad really fix workbook corruption?

Yes. Copying VBA code or text through a basic text editor like Notepad strips away hidden XML formatting, corrupted metadata, and invisible objects. When you paste it back into a new workbook, you are importing clean, uncorrupted data.

Why does my Excel crash specifically during a Power Query refresh?

Power Query refreshes are highly memory-intensive operations. If your workbook is already bloated due to an incorrect used range or underlying corruption, the sudden spike in memory required to fetch and model new data can cause the application to exceed its limits and crash.

Does using 32-bit vs 64-bit Excel matter for Data Models?

Absolutely. The 32-bit version of Excel is strictly limited to 2GB of memory. Processing large Data Models and complex relationships will easily exceed this limit, resulting in crashes. Upgrading to 64-bit Excel provides access to significantly more memory, which helps prevent these issues.