Hi!

I am looking for a code that I can build on to control MS Outlook using vba in a similar way than what is normally done using the "rules wizard" in outlook. I tried the tips on exceltip.com, but didn't find exactly what I was looking for. If anybody can point me in a direction or even provide specific code, I'd be really grateful.

The task:

- check mail when it arrives
- if incoming mail contains "subject x" in subject line:
- send new email...
- to recipient email address included in line 1 (of original email), starting at character number 7
- include attachements in new email depending on
- if original email contained words "attachment 1" anywhere in body, attach attachment "attachment1.doc"
etc. etc. for a lot of files which are not exclusive, i.e., I might have to attach several files.
- send email

You get the picture. I am basically getting a lot of standardized emails from people who are submitting forms over the web, and I want to send them files depending on what boxes they checked.

Again, any help will be appreciated!

as