Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi All!
For my business I need to automate the handling of the emails that hit our default inbox in Outlook. The 'handle emails' script will be run every few minutes and do one of several things depending on the email.
I thought this thread could end up being a nice - Outlook automation from excel 'toolbox' as all the scripts I need will be very generic.
These are what I need the scripts to do:
1. Check for the presence of emails in the default inbox.
2. If there are emails - cycle through them one after the other running 'if' statements that do several things.
(i) Test against the subject.
(ii) Test against the email sender's address.
(iii) Copy and paste of the email body to a single cell in the workbook to be processed.
(iv) Move the email to another folder under the Inbox hierarchy.
(v) Change the email status from read to unread or vice versa.
That's it.
Obviously why these actions will be taken depends on the info in the emails as compared to my data.
If anyone can help me with these scripts I'll be hugely grateful. I've had a look around the net for the answers but can only find scripts that do half of what I need and then half of something completely different and as my coding understanding is poor at best - I can't extract the good from the bad.
Cheers all!
Oliver
For my business I need to automate the handling of the emails that hit our default inbox in Outlook. The 'handle emails' script will be run every few minutes and do one of several things depending on the email.
I thought this thread could end up being a nice - Outlook automation from excel 'toolbox' as all the scripts I need will be very generic.
These are what I need the scripts to do:
1. Check for the presence of emails in the default inbox.
2. If there are emails - cycle through them one after the other running 'if' statements that do several things.
(i) Test against the subject.
(ii) Test against the email sender's address.
(iii) Copy and paste of the email body to a single cell in the workbook to be processed.
(iv) Move the email to another folder under the Inbox hierarchy.
(v) Change the email status from read to unread or vice versa.
That's it.
Obviously why these actions will be taken depends on the info in the emails as compared to my data.
If anyone can help me with these scripts I'll be hugely grateful. I've had a look around the net for the answers but can only find scripts that do half of what I need and then half of something completely different and as my coding understanding is poor at best - I can't extract the good from the bad.
Cheers all!
Oliver