使用 VBA 将 Outlook 邮件标记为已读?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25496584/
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
Mark an Outlook message as read with VBA?
提问by CK1
Is there a way to mark a message as read if that message has been replied to?
如果该消息已被回复,有没有办法将消息标记为已读?
Example: this is my E-Mail
RE: this is my E-Mail
示例:这是我的电子邮件
RE:这是我的电子邮件
Can I mark both as read?
我可以将两者都标记为已读吗?
回答by David Zemens
An outlook MailItem
has a property .UnRead
:
前景MailItem
有一个属性.UnRead
:
Returns or sets a Boolean value that is True if the Outlook item has not been opened (read). Read/write.
如果 Outlook 项目尚未打开(读取),则返回或设置为 True 的布尔值。读/写。
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._mailitem.unread.aspx
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._mailitem.unread.aspx
Assuming you have a handle on these mailItems, simply set their respective .UnRead = False
to mark them as read.
假设您对这些邮件项目有一个句柄,只需设置它们各自.UnRead = False
的标记为已读。