Outlook Categories

R

Richard

Is there a way to un-select a specific category using
VBA/VBScript? I've been able to choose categories using
the Item.Categories="Newsletter, Christmas Card List" and
clear all categories with Item.Categories="", but how do
you un-select one category without clearing all of them?
I've tried Item.Categories<>"Newsletter", but that fails.

Thank you for your help,
Richard
 
S

Sue Mosher [MVP]

Did you try Replace? As in:

strCat = Item.Categories
strCat = Replace(strCat, "Newsletter", "")
Item.Categories = strCat

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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