Code is looping through fairly large data (1000 rows by 20-ish columns) and deleting rows where there is not an error in the cell but currently takes 20 minutes to execute. Looking for a way to speed up the process by removing the need for offset and select in the code.
I have tried turning auto-calculation off/on before and after the code but this did not noticeably affect run-time. Screen updating is already off.
Range("A6").Select
Do Until IsEmpty(ActiveCell)
If IsError(ActiveCell) Then
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.EntireRow.Delete
End If
Loop
Leaves rows where the cell in Range A is N/A (IsError). Runs as expected but takes a full 20 minutes to run.
Any help is appreciated.