'Delete Filtered Rows in Table and not entire Row
How do I delete table rows only and not entire worksheet rows when my table is filtered?
Dim TradeTable As Excel.ListObject
Set TradeTable = Sheets("Pre Trade").ListObjects("PreTradeTable")
On Error Resume Next
With TradeTable
TradeTable.Select
.Range.AutoFilter Field:=.ListColumns("Ask Spread").Index, Criteria1:=""
Call .DataBodyRange.SpecialCells(xlCellTypeVisible).Select
Selection.Delete
.Range.AutoFilter
End With
On Error GoTo 0
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
