How to Fix Excel Rows Deleted Automatically When Opening a Workbook
Question details
The user needs to recover and fix an Excel workbook where rows are vanishing and formatting breaks every time the file is opened.

- Product
- Excel 2021
- Device & OS
- not provided
- Scenario
- Opening a multi-sheet workbook containing monthly data.
- Observed behavior
- Rows are automatically deleted, and the remaining data appears merged or corrupted upon opening the file.
Before attempting any repairs, make a copy of your workbook and save it in a different folder. This ensures you do not lose your original file state if the repair or macro-removal process alters the structure.
Use the Excel Open and Repair Tool
Use Excel's built-in utility to automatically detect and fix corrupted file structures that may be causing formatting anomalies and data loss.
File corruption can occasionally manifest as merged cells or missing rows. Excel has a native repair function that scans the workbook structure and attempts to restore unreadable content upon opening.
Open Microsoft Excel, click on 'File' in the top ribbon, navigate to 'Open', and select 'Browse' to launch the file explorer window.
Locate your corrupted workbook. Instead of clicking the main 'Open' button, click the small drop-down arrow next to it and select 'Open and Repair'.
A prompt will appear. Click 'Repair' to recover as much of your work as possible. If this fails to fix the rows, repeat the process and choose 'Extract Data' to retrieve values and formulas.

Check for Malicious Macros and Disable Add-ins
Identify and disable automated VBA scripts or conflicting add-ins that might be programmed to hide or delete rows upon opening.
Move Unaffected Sheets to a New Workbook
If file corruption is persistent across the workbook, migrating your clean data to a completely new file can resolve hidden structural issues.
Try WPS Office for a Stable and Safe Spreadsheet Experience
If your Excel files are frequently experiencing macro conflicts, slow loading times, or corruption, WPS Office provides a lightweight, highly compatible alternative. It safely handles complex workbooks and fully supports Microsoft Excel formats without the heavy resource drain.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office for your device.
- 2. Open Your Workbook: Launch WPS Spreadsheet and safely open your corrupted or macro-heavy Excel files.
- 3. Edit Without Hassle: Enjoy stable editing, fast processing, and immediate auto-saving features.

Frequently Asked Questions
Why does my Excel file look merged and missing rows when I open it?
This usually happens due to underlying file corruption, conflicting Excel add-ins, or hidden VBA macros (such as a 'Workbook_Open' event) that automatically run and modify the sheet formatting upon opening.
Will saving my file as .xlsx remove all my macros?
Yes. The .xlsx format is inherently macro-free. Saving your workbook in this format is a quick and effective way to safely strip out any harmful or buggy VBA code that might be causing row deletions.
What should I do if the Excel 'Open and Repair' tool fails?
If the standard repair fails, repeat the File > Open > Browse process, select 'Open and Repair', but choose 'Extract Data' instead of 'Repair'. This attempts to strip formatting and salvage raw values and formulas. You can also try opening the file in a free alternative like WPS Office.
How do I find out which add-in is corrupting my Excel file?
Go to File > Options > Add-ins, select 'COM Add-ins' at the bottom, and click 'Go'. Uncheck all the add-ins, restart Excel, and enable them one by one until the row deletion issue reappears to identify the culprit.




