Hello,
You might want to check out
Sue Mosher does a real nice job with questions on that site.
In the Outlook VB editor, right click on ThisOutlookSession and select ViewCode. One of the Application events you can trap is NewMail (unfortunately it doesn't expose the item just received).
The Outlook object you are interested in is the MailItem. It is olMailItem in the enumerations. There are some properities you can interrogate to ensure you have a mail item and not a contact item, etc.
Once you have a valid MailItem, then you want to scan the Body property with the code you referenced above.
Outlook's object model is very different from any of the other Office products because it is not Document centric.
An individual email is opened up in an inspector which is part of the NameSpace if my memory serves me correctly.
Set objApp = CreateObject("Outlook.Application"

Set objNameSpace = objApp.CreateNamespace("MAPI"

Set objInspector = objNameSpace.GetInspector(?)
Sorry, the above is off the top of my head, so please accept my apologies if there are mistakes in it. It will hopefully at least get you started.
Another gotcha to be aware of is the Security patch will prompt you for permission to send an email when you reference an address with your autoreply feature. There is no way to program around it but there is an excellent 3rd party product which creates wrappers around Extended MAPI to allow you to work with it. Check out
It is worth the money.
Good LucK!
Have a great day!
j2consulting@yahoo.com