Categories - Selecting

D

DMc2004

How do select a category called "Training" automatically by using VBA in
Outlook.

D
 
S

Sue Mosher [MVP-Outlook]

What do you mean by "select"? Assign it to an individual item? Return all items with that category?
 
D

DMc2004

Instead of having to right click on a message and selecting catergory, the
putting a tick in the box.

I would like code to do it.

better still do it when the message is opened.

I already have a trigger to bring up a userform for the message so i would
like to incorparte it in there
 
S

Sue Mosher [MVP-Outlook]

Just append to the item's Categories property. See http://www.outlookcode.com/d/propsyntax.htm if you're unfamiliar with working with Outlook item properties.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top