I need to delete all the rows with the value 5.0.0 and I create/use an autofilter to filter that value.
The fourth line is where I delete all the rows containing the value. When I do this, the columns headers also become deleted.
Using ws.
might be easier, however the names of the sheets will change over time, so I want to avoid using that.
Columns ("L").Select
Selection.Autofilter
ActiveSheet.Range("$F$1:$H$13889").AutoFilter Field:=1, Criteria1:="5.0.0"
ActiveCell.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilterMode = False