-
[vba] Check outlook CC for domain & subject phrase
Hey all,
I'm trying to write a VBA script that, upon receiving an email, checks the CC for a list of emails or domains. As well if the subject contains the phrase "ST26". If any of the listed emails are in the CC i would like to move the email to a folder. I have to omit the dot coms and change the at signs to ampersand as per forum regulations.
It would be ideal if this could work using a domain rather than specific emails though, example being gmail instead of blake&gmail
so the list of emails to check
gmail
outlook
msn
if any of those 3 are found in the CC then move to a folder named "Vendor"
an example email CC that would trigger this rule:
carl&twitch; janice&vbaexpress; greg&msn
im not very familiar with Outlook VBA syntax, only Excel VBA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules