Skip to content

Delete hidden rows ​

Location on ribbon: Tab DVD Addin → Group Cells and Rows → the ▾ arrow of Delete blanks

Command ID: btnDeleteHiddenRows

What it does ​

Permanently removes the rows that are currently hidden inside a range you point at, instead of just unhiding them. It is the quick way to "freeze" a filtered table: once AutoFilter or manual hiding has left only the part you want to issue, this command drops the rest for good — useful when splitting one section's quantities into its own file, or producing an extract that contains only the accepted work items.

How to use ​

  1. Hide (or filter and hide) the rows you do not want to keep.
  2. Click Delete hidden rows in tab DVD Addin → group Cells and Rows → the ▾ arrow of Delete blanks.
  3. A range prompt appears: "Select range to delete hidden rows". Select the range and click OK; Cancel exits without changes.
  4. The Confirm data change window shows how many hidden rows will be deleted and reminds you that filtered-out rows still hold data. Keep the backup ticked and click Continue.
  5. The add-in scans each row in the range, collects the hidden ones and deletes them bottom-up.
  6. Press ESC while it runs to stop early — the rows already deleted stay deleted.
  7. The status bar reports the result, for example Deleted 154 hidden row(s).

Video tutorial ​

Narrated in Vietnamese, with Vietnamese subtitles. Xoá dòng trống, dòng ẩn, format, Name lỗi, Cell Style · 6 min 22 s · 14 cases · Download the video · Practice workbook for the video

Commands in this video: Delete blanks · Strip junk styles · Delete error Defined Names · Delete hidden rows · Delete unused formats

Chapters (18)
  1. Giới thiệu
  2. Mở lệnh
  3. 1 · Bảng xuất từ dự toán
  4. 2 · Cột công thức kéo dài
  5. 3 · Ghi chú ngoài vùng chọn
  6. 4 · Dòng trống đang ẩn
  7. 5 · Ô gộp nhiều dòng
  8. 6 · Chọn cả cột
  9. 7 · Xoá dòng ẩn: bảng đã lọc
  10. 8 · Xoá dòng ẩn: nhóm thu gọn
  11. 9 · Xoá format không dùng
  12. 10 · Ô lạc làm dọn hụt
  13. 11 · Xoá Defined Names lỗi
  14. 12 · Xoá Cell Style ngoại lai
  15. 13 · Ghi đè và hoàn tác
  16. 14 · Sheet khoá, lệnh không chạy
  17. Mẹo
  18. Kết thúc

Illustrated walkthrough ​

Practice

Download this command's sample workbook — the data matches the pictures below (sheet Qty summary), so you can follow each step right away.

Step 1. Hide the rows you do not want to keep — usually with AutoFilter. For example, filter the Package column (1) to Steelwork only: the rows of other packages (2) become hidden. Work on a copy of the original file.

Step 1

Step 2. On the ribbon, open the DVD Addin tab → Cells and Rows group → open Delete blanks → choose Delete hidden rows.

DVD Addin ▸ Cells and Rows ▸ Delete blanks ▸ Delete hidden rows

Step 3. The range box asks Select range to delete hidden rows: drag over the whole table, here A4:E11 — the range spans the hidden rows 5, 8–9, 11 (1) — and click OK.

Step 3

Step 4. The confirmation box shows how many hidden rows will be deleted and reminds you that filtered-out rows still hold data (1). Keep the backup ticked (2) and click Continue (3).

Step 4

Step 5. The hidden rows are gone for good and only the Steelwork rows remain (1); the status bar reports how many rows were deleted (2). Re-check totals and the print area afterwards.

Step 5

Example ​

A consolidated quantity workbook holds five sections on one sheet, 900 rows in total. The Steel structure part has to be issued separately to a subcontractor.

Save a copy of the file → AutoFilter the "Section" column to Steel structure so the other rows are hidden → select A6:K905 → click Delete hidden rows. What remains is only the steel-structure scope, safe to send without exposing the other sections' quantities.

Notes ​

  • The command deletes entire sheet rows — data outside your selection but on the same rows is lost as well.
  • Excel's normal Ctrl+Z cannot undo it; if you kept the backup ticked in the confirmation window, press Ctrl+Z right after the command to put the sheet back (later on, use Restore data). When the output leaves your office, still work on a copy of the original.
  • Rows hidden by a collapsed row group (outline) count as hidden and will be deleted too — expand all groups first if you are unsure.
  • Large ranges take a while because each row is a separate delete call; ESC stops it mid-way.
  • Afterwards, re-check total formulas and print areas, since the referenced ranges have changed.
  • The range picker does not lock Excel: while it is open you can scroll, switch sheets or switch workbooks to pick the range there. Click OK or press Enter on the sheet when done; Cancel or Esc to stop.

Released under DVDAddin License.