How to Find and Delete Hidden Lines or Objects in Excel
Question details
The user needs to find and delete hidden lines or objects in Excel that are causing performance issues and file bloat.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- A workbook contains hidden lines that unexpectedly increase the file size from 32 MB to 120 MB when saved as an older .xls file, leading to 100% CPU usage and extreme sluggishness.
- Observed behavior
- Invisible objects (such as "Lines 2") appear automatically, severely degrading application performance, consuming available CPU resources, and drastically increasing document size.
Before removing objects, save a backup copy of your Excel workbook to prevent accidental data loss. It is also highly recommended to save your file in the newer .xlsx or .xlsm format instead of the outdated .xls format.
Use the Selection Pane to Find and Delete Hidden Objects
The Selection Pane lists all objects on the current worksheet, allowing you to easily spot, select, and delete invisible or hidden lines individually or in groups.
The Selection Pane is the most precise tool for managing graphics, shapes, and hidden lines in a spreadsheet. It provides a visual list of every object on the active sheet, even if its visibility is toggled off.
Navigate to the 'Home' tab on the ribbon. Click on 'Find & Select' in the Editing group, and then choose 'Selection Pane' from the drop-down menu.
In the Selection Pane that appears on the right side of the screen, look through the list for unwanted objects (for example, items named 'Lines 2'). An eye icon next to the object indicates whether it is currently visible or hidden.
Click on the name of the object in the pane to select it. To select multiple hidden lines at once, hold down the 'Ctrl' key on your keyboard while clicking the object names.
Once the unwanted lines are highlighted in the pane, press the 'Delete' key on your keyboard to remove them from the workbook.

Select All Objects Using the Go To Special Tool
If you have numerous hidden objects and want to delete them all at once rather than clicking them individually, the Go To Special tool is the fastest method.
Upgrade File Format to Prevent File Bloat
Older file formats (.xls) handle graphical objects inefficiently. Upgrading to .xlsx resolves file size and CPU usage issues caused by object bloat.
Use WPS Spreadsheet to Manage Objects and Boost Performance
WPS Office provides an intuitive Selection Pane to easily track down, hide, or delete invisible objects and lines. It securely handles complex graphical data, prevents the file bloating commonly associated with older formats, and helps you maintain a fast, responsive workflow.
- 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the bloated or slow-performing workbook.
- 2. Access the Selection Pane: Navigate to the 'Page Layout' or 'Home' tab on the ribbon, find the 'Find and Replace' menu, and click on 'Selection Pane'.
- 3. Identify hidden lines: Review the list in the task window on the right to spot unwanted lines or shapes that are taking up resources.
- 4. Delete and optimize: Click on the unwanted objects in the list and press the Delete key. Save your optimized document as a .xlsx file to ensure long-term stability.

Frequently Asked Questions
Why do hidden lines randomly appear in my Excel workbook?
Hidden lines and objects often accumulate unintentionally when you copy and paste data from external sources, websites, PDF documents, or other workbooks that contain invisible shape data or formatting artifacts.
Can I select all hidden objects in a worksheet at once?
Yes. You can press F5 to open the Go To dialog, click Special, select Objects, and click OK. This instantly highlights all shapes, charts, and lines on the active sheet, allowing you to delete them simultaneously by pressing the Delete key.
Why does my file size increase dramatically when saving as .xls?
The older Excel 97-2003 (.xls) format is not optimized for modern graphical objects. Saving a workbook with numerous lines or shapes in .xls causes the file to bloat exponentially because it lacks the efficient ZIP-based compression used by the newer, XML-based .xlsx format.




