Hi, If on same row, and when Col"E"(5) AND Col"R"(18) BOTH equal MYSTRING, I would like the row/cellrange deleted and shiftedup... have tried many variation's with my limited skillset here, and am stuck. Can someone please assist, ThankYou!!
Dim Lastrow As Long
Dim i As Long
Dim MyString As String
MyString = "XXXxx XX:XX X"
Lastrow = Range("L" & Rows.Count).End(xlUp).Row
For i = Lastrow To 2 Step -1
If Cells(i, 5) = MyString And Cells(i, 18) = MyString Then
Range(Cells(i, 1), Cells(i, 21))..Delete Shift:=xlUp
End If
Next i
Dim Lastrow As Long
Dim i As Long
Dim MyString As String
MyString = "XXXxx XX:XX X"
Lastrow = Range("L" & Rows.Count).End(xlUp).Row
For i = Lastrow To 2 Step -1
If Cells(i, 5) = MyString And Cells(i, 18) = MyString Then
Range(Cells(i, 1), Cells(i, 21))..Delete Shift:=xlUp
End If
Next i