R
rligouri
I am working on some code to automatically save attachments based on
information in the email message. I have found plenty on information on
the basics of saving attachments, but I am looking to get a little more
advanced. First off, I want to stay away from rules all together and do
it entirely in VBA if possible. What I want to do is if certain
"triggers" are contained in the subject or body, then the attachments
will be saved to the local drive. I haven't decide yet what i will use
as the trigger, but lets just say if the subject or body contained the
phrase "%%SAVE", using the next 10 characters after that phrase, the
file(s) will be saved to a directory named whatever those 10 characters
are. Is it possible to use VBA to seach the subject or body for that
trigger? I want it so the trigger can be located anywhere and not in a
specfic place like the begining of the text. Thanks in advance.
information in the email message. I have found plenty on information on
the basics of saving attachments, but I am looking to get a little more
advanced. First off, I want to stay away from rules all together and do
it entirely in VBA if possible. What I want to do is if certain
"triggers" are contained in the subject or body, then the attachments
will be saved to the local drive. I haven't decide yet what i will use
as the trigger, but lets just say if the subject or body contained the
phrase "%%SAVE", using the next 10 characters after that phrase, the
file(s) will be saved to a directory named whatever those 10 characters
are. Is it possible to use VBA to seach the subject or body for that
trigger? I want it so the trigger can be located anywhere and not in a
specfic place like the begining of the text. Thanks in advance.