PDA

View Full Version : Tagging messages - code



NewED
09-01-2010, 12:02 AM
I have outlook 2003.

I use the following macro in order to tag an outgoing message by category and by message sensetivity.

Public Sub TagMessage()
ActiveInspector.CurrentItem.Categories = "business"
ActiveInspector.CurrentItem.sensetivity = olsensetivity
End Sub

However each time I use this macro, the subject line is deleted from the mail.

What is the reason ?

NewED
09-08-2010, 02:54 AM
Is it a complex code?

Crocus Crow
09-08-2010, 04:41 PM
This works for me in ThisOutlookSession.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Item.categories = "Business"
Item.Sensitivity = olPrivate
End Sub