I’ve tried to no avail to delete certain rows within a workbook based on specific criteria. I can get it to delete some of the rows but it never deletes all of them. I’ve tried various methods of looping script that I’ve gleemed from here, text books, etc. to no avail. Can someone please help. Thanks!! I’ve attached my code for review.
Sub DeleteRows
Dim i as Integer
For i = 1 To Range (“Impact_Test_Criteria”).cells.count
If Range(“Impact_Test_Criteria”).cells(i) = 1 Then
Range(“Impact_Test_Criteria”).Cells(i).Entirerow.Delete
Else
End if
Next i
End Sub