G
Guest
Hi, this is my very first attempt at programming anything in outlook.
Since assigning categories when sending mails are so well hidden (you have
to click at least 5-6 times to assign one to an outgoing message) I want to
create a button with code that assigns a certain category to the outgoing
message.
I know that I have to use the objMail.Categories property and to save it by
objMail.Save. But do I have to do something initially in the code to get it
working?
Basically what I have so far is:
If objMail.Categories = "" Then
objMail.Categories = "Privat"
objMail.Save
Else
objMail.Categories = ""
objMail.Save
End If
End Sub
But I guess that even though I am running the macro in the current mail
window it does not compute which to initialize.
Any help
Since assigning categories when sending mails are so well hidden (you have
to click at least 5-6 times to assign one to an outgoing message) I want to
create a button with code that assigns a certain category to the outgoing
message.
I know that I have to use the objMail.Categories property and to save it by
objMail.Save. But do I have to do something initially in the code to get it
working?
Basically what I have so far is:
If objMail.Categories = "" Then
objMail.Categories = "Privat"
objMail.Save
Else
objMail.Categories = ""
objMail.Save
End If
End Sub
But I guess that even though I am running the macro in the current mail
window it does not compute which to initialize.
Any help