categories for contacts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some vba code asigned to a toolbar button to automatically update some
info for that contact. I'd like to add one more thing to this code: I'd
like it to automatically add that contact to a particular category. I know
it's just a few simple lines of code, but I'm not sure how... thanks,
charlie (CK)
 
Try this:

objContactItem.Categories = objContactItem.Categories & ", New Category"

This retains any previous categories that may have been applied.
 
Thank you so much. That worked good. Now I have one more problem I forgot
about: This category I'm adding, it's "Mailed Received". But I also need to
do one more thing. I need it to check and see if the contact is in the
category "Mail Sent" and if so, to remove it from that category. Thanks. CK
 
ps. Eric, This is a different subject, but I always click on "Was this info
helpful" to state that it was helpful to me when someone answers my question.
Why then, when I look at my username history does it say something like
"posts made-51", "questions answered-0" I've had lots of questions answered
and hope I'm giving credit for them...
ck
 
Back
Top