Mark Outlook as read using VBA?

Is there a way to mark a message as read if a message was sent to this message?

Example: this is my email
RE: this is my email

Can I mark both as read?

+7
source share
2 answers

The appearance of MailItem has the .UnRead property:

Gets or sets the boolean 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 to these mail items, just set their appropriate .UnRead = False to mark them read.

+17
source

olMail.UnRead = False

WHERE OLMYLE MAIL ITEM

0
source

Source: https://habr.com/ru/post/974337/


All Articles