Sabastian Samuel
New Member
- Outlook version
- Outlook 2016 64 bit
- Email Account
- IMAP
I WOULD REALLY APPRECIATE IT IF SOMEONE COULD HELP ME OUT. IVE BEEN TRYING TO UNDERSTAND MACRO LANGUAGE FOR AGES AND I CANT SEEM TO GET ANYWHERE!
HERE IS WHAT I WANT TO DO. I hope this makes sense.
----
I want a macro to read every email that gets sent to my inbox.
IF the subject line begins with "Lost Property at"
THEN extract the whole body of the email as a string - string name "BODY"
SPLIT the the string at the point where "\split" is in the text
I should have these strings only now
BODY_1
BODY_2
i dont think there is a chance of \split being in the body more than once. but if it is, i would want to isolate BODY_1 and concatenate the rest together
I now want the macro to write an email:
to: BODY_1
subject: the subject of the original email
body: BODY_2
SEND
HERE IS WHAT I WANT TO DO. I hope this makes sense.
----
I want a macro to read every email that gets sent to my inbox.
IF the subject line begins with "Lost Property at"
THEN extract the whole body of the email as a string - string name "BODY"
SPLIT the the string at the point where "\split" is in the text
I should have these strings only now
BODY_1
BODY_2
i dont think there is a chance of \split being in the body more than once. but if it is, i would want to isolate BODY_1 and concatenate the rest together
I now want the macro to write an email:
to: BODY_1
subject: the subject of the original email
body: BODY_2
SEND