Satyaprakash
New Member
Hello,
I have the following code which deletes the rows that contain a certain text. However given the enormous amount of data I deal with it takes a lot of time for the code to execute. Is there a faster way of doing this.
I have the following code which deletes the rows that contain a certain text. However given the enormous amount of data I deal with it takes a lot of time for the code to execute. Is there a faster way of doing this.
Code:
Sub DeleteRow()
Last = Cells(Rows.Count, "A").End(xlUp).Row
For i = Last To 1 Step -1
If (Cells(i, "A").Value) = "Parent Job I" Then
'Cells(i, "A").EntireRow.ClearContents
Cells(i, "A").EntireRow.Delete
End If
Next i
End Sub
Last edited by a moderator: