B
Bongo
My incoming messages come with the Importance flag both set and unset. Since
I sort by importance, having messages with unset importance float to the
bottom of my list (after hundreds with Normal importance).
I have created the following VBA program and have it invoked from rule that
applies to all incoming messages:
Sub SetImportanceRule(Item As Outlook.MailItem)
If Item.Importance <> olImportanceHigh Then
Item.Importance = olImportanceNormal
Item.Save
End If
End Sub
I signed the VBA module so that there would be no macro warning message on
first invocation.
Nonetheless, occasionally the script fails, and (a) the message importance
isn't set correctly; and (b) the rule turns itself off. Noting that this
occurred with return receipts often, I changed the type of the argument to to
Object instead of Outlook.MailItem, but the error still occurs. I can't
determine what characteristics of a particular message give rise the error
occuring.
Any thoughts on (1) how to determine what error is occuring (the diagnostics
are nonexistant); (2) what might be wrong; (3) how to define an error handler
so that it fails gracefully instead of causing the rule to turn off?
Tx & rgds
I sort by importance, having messages with unset importance float to the
bottom of my list (after hundreds with Normal importance).
I have created the following VBA program and have it invoked from rule that
applies to all incoming messages:
Sub SetImportanceRule(Item As Outlook.MailItem)
If Item.Importance <> olImportanceHigh Then
Item.Importance = olImportanceNormal
Item.Save
End If
End Sub
I signed the VBA module so that there would be no macro warning message on
first invocation.
Nonetheless, occasionally the script fails, and (a) the message importance
isn't set correctly; and (b) the rule turns itself off. Noting that this
occurred with return receipts often, I changed the type of the argument to to
Object instead of Outlook.MailItem, but the error still occurs. I can't
determine what characteristics of a particular message give rise the error
occuring.
Any thoughts on (1) how to determine what error is occuring (the diagnostics
are nonexistant); (2) what might be wrong; (3) how to define an error handler
so that it fails gracefully instead of causing the rule to turn off?
Tx & rgds