Automatically Assign Category

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
 
E

Eric Legault [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top