I managed to get the answer after I run this code. But I still received Runtime error 13 message. Can u help me to resolve it? @PEH
Dim ws As Worksheet
Dim str As String
str = "Attention for shipment on track"
Set ws = Worksheets("Report")
Dim lastrows As Long
lastrows = ws.cells(Rows.Count, 1).End(xlUp).Row
Dim i As Long
For i = 2 To lastrows
If InStr(1, ws.cells(i, 43).Value, str) > 0 Then
ws.cells(i, 63).Value = "OK"
End If
Next i
If InStr(ws.cells(i, 43).Value, "str") ThenforIf ws.Cells(i, 43) Like "*" & str & "*" ThenLikeoperator in this context would be enough for her goal, right?ws.cells(i, 43).Valuein case of the error?