troubleshooting Question

outlook vba to clear categories

Avatar of redpoppy
redpoppy asked on
Visual Basic ClassicOutlook
17 Comments1 Solution3151 ViewsLast Modified:
Hi Experts,

I've just upgraded to Outlook 2013 only to find that the quick click for assigning/removing categories is no longer available in the view that I want to use. I found the following code which I'm using to remove categories from a single email, can this be modified to remove the categories from all selected emails ? Thanks in anticipation of your help.

Public Sub ClearCategory()
On Error Resume Next
Dim Item As Object 
Set Item = Application.ActiveExplorer.Selection.Item(1) 
Item.Categories = ""
End Sub
Chris Raisin
Retired Senior Systems Analyst/Programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros