Macro/button to change message importance

Joined
Mar 4, 2011
Messages
1
Reaction score
0
I have to change large numbers of messages that come into our company email as high importance until certain actions are taken and then I have to go back and change them to normal importance at some later time. I think it's crazy that this can only be done one at a time through the message options screen.

Is there a way to assign a macro to one button to change to high importance and to another button to change to normal importance?
 
yeah, you need the MailIItem object, just loop through all the emails you want to change and assign importance this way

Code:
Dim mailMail As MailItem,

set mailMail = outlook.Session.Folders.Item(x).Folders.Item(y).Items.Item(z) ' where x is the index of the parent folder (default is Personal Folders) and y is the index of sub folder (be it a custom on e or your inbox or whatever) and z it the index of the email item

mailMail.Importance = olImportanceHigh 'for high

mailMail.Importance = olImportanceNormal 'you get the idea

Hope that helps
 
Back
Top