Hi all,
My VBA skills are very limited. I have found the below code from another thread which I've copied and pasted into my coding, it has worked for me to a point.
This currently deletes any rows where column T contains the phrase "Pending Failure". But I need to go a step further and it delete any rows where column T contains either "Pending Failure" or "Variation".
Please can someone help?
Cheers
Chris
My VBA skills are very limited. I have found the below code from another thread which I've copied and pasted into my coding, it has worked for me to a point.
This currently deletes any rows where column T contains the phrase "Pending Failure". But I need to go a step further and it delete any rows where column T contains either "Pending Failure" or "Variation".
Code:
Dim MyCol As String
Dim i As Integer
For i = 1 To Range("T" & "65536").End(xlUp).Row Step 1
If Application.WorksheetFunction.CountIf(Range("A" & i & ":AZ" & i), "Pending Failure") > 0 Then
Range("T" & i).EntireRow.Delete
End If
Next i
Please can someone help?
Cheers
Chris