views:

25

answers:

2

I'm looking to search my emails for particular bits of text (or sender name) to be able to do things to those mails afterwards (i.e. delete, move to folder, remove content, etc.)

Being an Outlook macro newbie, where should I start? Any ideas/pointers on the above or useful reference web sites much appreciated.

A: 

You might like to consider Restrict: http://msdn.microsoft.com/en-us/library/bb220369.aspx (note the code samples at the bottom of the link)

And Find: http://msdn.microsoft.com/en-us/library/bb220350.aspx

Remou
A: 

The best source for knowledge on MS Outlook automation AFAIK is Sue Mosher and her outlookcode.com site. Her books are also helpful (I'm using Microsoft Outlook Programming for Outlook 2003).

Speaking of your question (searching for specific string in body of the email) check this thread on outlookcode.com: http://outlookcode.com/threads.aspx?forumid=2&messageid=31996

As your question is quite general I hope this will help you to begin with the subject.

Cornelius
Cheers - I'll have a look for this book.
Umber Ferrule