Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello,, i am currently using the folliwng vba to remove unwanted rows, however as the data grows the refresh time is not very fast.
iLastRow = Cells(Rows.Count, "g").End(xlUp).Row
For i = iLastRow To 1 Step -1
If Cells(i, "j").Value = "xxx" Then
Rows(i).delete
End If
Next i
I am also having to remove rows with values "zzz" now. so have just duplicated this code.
Is there a more efficent way to remove these rows in a timely manner?
iLastRow = Cells(Rows.Count, "g").End(xlUp).Row
For i = iLastRow To 1 Step -1
If Cells(i, "j").Value = "xxx" Then
Rows(i).delete
End If
Next i
I am also having to remove rows with values "zzz" now. so have just duplicated this code.
Is there a more efficent way to remove these rows in a timely manner?
Last edited: