Romano_odK
Active Member
- Joined
- Jun 4, 2020
- Messages
- 380
- Office Version
- 365
- Platform
- Windows
Good morning,
Got this code and by definition it works, but its really slow so I am looking for either another and fast solution or make it a filter only. So that last part, can this be done with this code, so to make it filter only?
Thank you for your time.
Got this code and by definition it works, but its really slow so I am looking for either another and fast solution or make it a filter only. So that last part, can this be done with this code, so to make it filter only?
Thank you for your time.
VBA Code:
Dim lr As Long
Dim r As Long
Application.ScreenUpdating = False
' Find last row in column A with data
lr = Cells(Rows.Count, "A").End(xlUp).Row
' Loop through all rows backwards, up to row 6
For r = lr To 6 Step -1
' See if columns H, I, or J is empty
If (Cells(r, "I") <> "AAP") Or (Cells(r, "J") = 0) Then
' Delete row
Rows(r).Delete
End If
Next r
Application.ScreenUpdating = Tru