in reference to http://www.ozgrid.com/VBA/row-delete-criteria.htm
Specifically:
With rRange 'Filter, offset(to exclude headers) and delete visible rows
.AutoFilter Field:=Col1, Criteria1:=strCriteria1
.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
End With
Code works great for deleting visible rows until i try to remove rows based on a criteria of:
The data filters correctly using this criteria but when I get to the:
.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
Portion of the code. The rows are not deleted.
Do you know of any issues with having nothing but
[TABLE="width: 1000"]
[tr]
[td]
------
[/td]
[td]
-------------------------
[/td]
[td]
--------------------------------
[/td]
[td]
-----------------------------------------------------------
[/td]
[/tr]
[/TABLE]
in a row and why this code would fail on those lines?
Thank you,
Donald