How to clear categories

D

donwms

In OL 2003, from a rule, I'm trying to run a script:

Sub ClearCategories(ObjMsg As Outlook.MailItem)
ObjMsg.Categories = ""
ObjMsg.Save
End Sub

I know that the rule is running, but the Categories are not bein
cleared.
Any idea what I'm doing wrong?

Thanks, Don William
 
K

Ken Slovak - [MVP - Outlook]

Is the script being called? Place a MsgBox in that macro to verify that it's
running.
 
D

donwms

I added msgbox to prove that script was being executed. It was, but now
the categories are getting cleared. That obviously implies that
previously it was not getting executed, but I don't have a clue why.
Regardless, it works now; so thanks.

Don Williams
 

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