Outlook macro to search mails for text strings [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_JAVA百科Closed 5 years ago.
Improve this questionI'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.
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
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.
精彩评论