How to Fix Excel Rows Hiding Automatically Without User Action
Question details
The user is experiencing an issue where rows in an Excel spreadsheet are hiding themselves unexpectedly without manual input.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Working on an Excel workbook that may contain active VBA macros, data filters, or grouped row settings.
- Observed behavior
- Rows in the worksheet disappear or become hidden automatically without the user actively choosing to hide them.
Before troubleshooting, save a copy of your workbook to ensure your original data remains intact while you test macro settings and clear active filters.
Disable Macros to Prevent Automatic Row Hiding
If your workbook contains automated scripts or VBA macros, they might be programmed to hide specific rows based on certain triggers. Disabling them helps identify if VBA code is the root cause.
Worksheet events (like Worksheet_Change or Worksheet_Calculate) can run VBA code in the background automatically. Disabling macros temporarily will stop these scripts from executing.
Navigate to the 'File' tab, select 'Options', and click on 'Trust Center'. Then, click the 'Trust Center Settings' button.
Go to 'Macro Settings' in the left pane and select 'Disable VBA macros with notification'. Click 'OK' to save your changes.
Close and reopen the workbook. Observe if the rows still hide automatically. If they stop hiding, a macro is the source of the issue.

Clear Active Filters and Ungroup Rows
Sometimes rows appear to hide automatically due to applied data filters or grouped row outlines rather than an actual error.
Use WPS Spreadsheet to Manage Macros and Unhide Rows
WPS Office offers robust tools for managing VBA macros, data filters, and row groupings, providing a seamless experience for troubleshooting automated formatting issues.
- 1. Open Your Workbook in WPS: Launch WPS Office and open your .xlsm or .xlsx file containing the hidden rows.
- 2. Adjust Macro Security: Go to the 'Developer' tab, click on 'Macro Security', and set the security level to High to prevent background scripts from hiding rows automatically.
- 3. Clear Data Filters: Navigate to the 'Data' tab and click 'Clear' in the filter section to reveal any rows hidden by dataset filtering.

Frequently Asked Questions
Why do certain rows disappear when I enter data in Excel?
This is typically caused by a Worksheet_Change VBA event macro programmed to hide rows automatically when specific values or conditions are met in the cells you are editing.
How do I unhide all rows in my spreadsheet at once?
Click the Select All button (the small triangle in the top-left corner of the worksheet between column A and row 1). Then, right-click any row number and select 'Unhide'.
Can Conditional Formatting hide rows in Excel?
Conditional formatting cannot physically hide rows or change row height to zero. However, it can make data appear invisible by changing the font color to match the cell's background color.
How can I tell if my rows are hidden or deleted?
Check the row numbers on the left side of your screen. If the numbers skip (for example, jumping from row 4 to row 6), the missing row is hidden. If the numbers are sequential but your data is missing, the content was likely deleted or moved.




