Outlook Categories

  • Thread starter Thread starter Richard
  • Start date Start date
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
 
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
 
Back
Top