I have the following vba code I picked up on stack overflow sometime back, the macro deletes records where the number 1 is present in column A but once this encounters several hundred rows the speed is very slow can anyone suggest a faster method to achieve the same?
Code
Sub deleteBlankRows()
Dim lRow As Long
Dim iCntr As Long
lRow = 750
For iCntr = lRow To 1 Step -1
If Cells(iCntr, 1) = 1 Then
Rows(iCntr).Delete
End If
Next
End Sub
Display More
credits for original macro this was derived from: stackoverflow.com/questions/27927042/find-and-delete-rows-where-cell-value-is-n-a