How to clear categories

Status
Not open for further replies.

donwms

Member
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 being cleared.


Any idea what I'm doing wrong?



Thanks, Don Williams
 
K

Ken Slovak - [MVP - Outlook]

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

running.

"donwms" <donwms.3urlrm@no-spam.invalid> wrote in message

news:donwms.3urlrm@no-spam.invalid...

> 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 being
> cleared.
> Any idea what I'm doing wrong?

> Thanks, Don Williams

> > donwms
> https://forums.slipstick.com/
>
 

donwms

Member
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
 
Status
Not open for further replies.
Top