I am wanting to delete the visible rows in a table where a filter has been applied.
This is what I'm using at the moment
The problem is that this deletes the entire row and not just the table rows.
As I have a pivot table to the right of the table I need to delete just the table rows and not the entire rows.
TIA
This is what I'm using at the moment
Code:
With Sheets("Events").ListObjects("tbl_EventItems")
.Range.AutoFilter Field:=1, Criteria1:=strEvent
.DataBodyRange.SpecialCells(xlCellTypeVisible).Delete
.Range.AutoFilter Field:=1
End With
As I have a pivot table to the right of the table I need to delete just the table rows and not the entire rows.
TIA