Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mark an Outlook message as read with VBA?

Tags:

vba

outlook

rule

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

Can I mark both as read?

like image 545
CK1 Avatar asked Aug 26 '14 01:08

CK1


1 Answers

An outlook MailItem has a property .UnRead:

Returns or sets a Boolean value that is True if the Outlook item has not been opened (read). Read/write.

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.

like image 154
David Zemens Avatar answered Oct 19 '22 08:10

David Zemens