all!
I would need to go through over 50k rows of data and delete rows with useless information. The current code works but is, unfortunately, all to slow... I tried understanding how it could be made more efficient but there wasn't easily found any concrete examples that I could have understood.
Here is the current code:
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
ThisWorkbook.Worksheets("FIC DATA WITH 3A").Activate
vika = Cells(Rows.Count, "B").End(xlUp).Row
r = 2
For i = 2 To vika
If Not Cells(r, "J") > 42369 Then
Rows(r).EntireRow.Delete
ElseIf Cells(r, "I") = "OC" Or Cells(r, "B") = "Sales Doc." Or Cells(r, "B") = "" Then
Rows(r).EntireRow.Delete
Else
r = r + 1
End If
Next i
Could you maybe help? Concrete examples are more than appreciated.
For i = vika To 2 Step -1