code_junkie

Clear Categories in Outlook 2003

Nov 12th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Sub RemoveCategories(MyMail As MailItem)
  2. Dim strID As String
  3. Dim objMail As Outlook.MailItem
  4.  
  5. strID = MyMail.EntryID
  6. Set objMail = Application.Session.GetItemFromID(strID)
  7. objMail.Categories = ""
  8. objMail.Save
  9.  
  10. Set objMail = Nothing
  11. End Sub
Add Comment
Please, Sign In to add comment