vba Outlook 宏用于在邮件中搜索文本字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3353208/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Outlook macro to search mails for text strings
提问by Umber Ferrule
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.
作为 Outlook 宏新手,我应该从哪里开始?非常感谢上述或有用的参考网站上的任何想法/指针。
回答by Fionnuala
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)
您可能想考虑限制:http: //msdn.microsoft.com/en-us/library/bb220369.aspx(注意链接底部的代码示例)
And Find: http://msdn.microsoft.com/en-us/library/bb220350.aspx
回答by Marek
The best source for knowledge on MS Outlook automation AFAIK is Sue Mosherand her outlookcode.comsite. Her books are also helpful (I'm using Microsoft Outlook Programmingfor Outlook 2003).
关于 MS Outlook 自动化 AFAIK 的最佳知识来源是Sue Mosher和她的Outlookcode.com站点。她的书也很有帮助(我正在使用Microsoft Outlook Programmingfor 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
说到您的问题(在电子邮件正文中搜索特定字符串)在 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.
由于您的问题很笼统,我希望这能帮助您开始这个主题。

