sneakymist
New Member
- Joined
- Jan 16, 2018
- Messages
- 3
Hi everyone,
I have an email subject that looks like this:
RE: Blah blah - Blah blah, 1234-56, Blah blah blah
I was wondering how to extract "1234-56" from the email subject.
I tried:
But that only gives me true/false and I want the actual data, 1234-56.
Additionally, I was hoping to use the find function on my spreadsheet to find where the data is located.
So for example, since the email subject contains 1234-56, I will go on my spreadsheet and use the find function to find "1234-56".
I tried:
but I don't think that's the correct syntax.
Thanks in advance for the help!
I have an email subject that looks like this:
RE: Blah blah - Blah blah, 1234-56, Blah blah blah
I was wondering how to extract "1234-56" from the email subject.
I tried:
Code:
If myemail.Subject Like "****-**" Then
But that only gives me true/false and I want the actual data, 1234-56.
Additionally, I was hoping to use the find function on my spreadsheet to find where the data is located.
So for example, since the email subject contains 1234-56, I will go on my spreadsheet and use the find function to find "1234-56".
I tried:
Code:
Cells.Find( _
What:=myemail.Subject, _
After:=ActiveCell, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False, _
SearchFormat:=False).Activate
but I don't think that's the correct syntax.
Thanks in advance for the help!