Hi,
This is part of my code:
This code will also delete the first row (header) in my sheet. Is there a way to exclude the first row and prevent it form being deleted?
This is part of my code:
Code:
.Range(.Cells(2, 1), .Cells(2, 1).End(xlDown)).AutoFilter Field:=1, _
Criteria1:="xxxx"
.Cells.SpecialCells(xlCellTypeVisible).EntireRow.Delete
This code will also delete the first row (header) in my sheet. Is there a way to exclude the first row and prevent it form being deleted?