Automatically Assign Category

  • Thread starter Thread starter Kerrick Sawyers
  • Start date Start date
K

Kerrick Sawyers

Good morning everyone!

I was just wondering if anyone knew of a macro that I
could use that would automatically assign a specified
category to a sent message.

I was specifically thinking that I could use WinScript to
accomplish this task, but I am not certain of how to do
it.

If anyone has any ideas, I would really appreciate the
help. Thanks!

Kindest regards,
Kerrick
 
It's very straightforward - just access the Categories property of the
message. Highlight one e-mail message and run this macro to see how it
works:

Sub AssignCategoriesToSelectedMessage()
Dim objItem As Object

Set objItem = ActiveExplorer.Selection.Item(1)

objItem .Categories = "Category1, Category2"
objItem .Save

End Sub
 
Back
Top