Hi there,
I'm trying to find an exact match in a body of an email. Obviously, InStr does not help, but apparently Split does. However, I am not sure how to implement this.
Here is my current code:
Currently, the code finds the word "AB311", but all I want it to find is "AB312".
Thanks in advance.
I'm trying to find an exact match in a body of an email. Obviously, InStr does not help, but apparently Split does. However, I am not sure how to implement this.
Here is my current code:
Code:
If InStr(1, msg.Body, "AB312") > 0 Then
Msgbox "Found"
Else
Msgbox "Not Found"
End If
Currently, the code finds the word "AB311", but all I want it to find is "AB312".
Thanks in advance.