I have over 60000
lines in excel I need to weed down by reading the F Column. I have a Functioning Macro but it is taking forever. I am deleting the rows if in Column F
the Value is 0
or null. I think my code may be too wordy. I am pretty new at VBA. I found this code online and tried to make it my own. Any help is greatly appreciated. My code is listed below.
Private Sub CommandButton1_Click()
Dim rng As Range
Dim i As Long
Set rng = ThisWorkbook.ActiveSheet.Range("F1:F62000")
With rng
For i = .Rows.Count To 1 Step -1
If .Item(i) = "" Then
.Item(i).EntireRow.Delete
End If
For i = .Rows.Count To 1 Step -1
If .Item(i) = "0" Then
.Item(i).EntireRow.Delete
End If
Next i
End With
End Sub