I have mails like this :
Hello,
Please note we did ... at 16h15
Actions done: Rebuilding etc
sincerely
Mr.
The actions change in every mail and what I want is to insert the action in my Excel. The problem is that I don't know how to get the "carriage return" (idk if this is the right name, this is what traduction gave me).
What I find in internet is that vbLfChr(10)
is the "carriage return".
What I tried is to find the beginning :
TechnicPosition= InStr(1, .Body, "Actions done: ")
TechnicAction= Mid(.Body, TechnicPosition, 14) ' first char from the action
But I can't get the last char (first "carriage return" from TechnicAction).
I tried many things like : InStr(TechnicPosition, .Body, vbCrLf)
My question : how to get a sentence that begin from a word to a "carriage return" (the first that comes after the beginning word) ?