Skip to content

Instantly share code, notes, and snippets.

@randyburden
Created September 30, 2016 16:25
Show Gist options
  • Save randyburden/d088f56c86f8db462c63b19afd281a33 to your computer and use it in GitHub Desktop.
Save randyburden/d088f56c86f8db462c63b19afd281a33 to your computer and use it in GitHub Desktop.
Outlook VBA Scripts for Adding Categories to New Emails
Public Sub ShowCategoriesDialog()
Dim Mail As Object
Set Mail = Application.ActiveInspector.CurrentItem
Mail.ShowCategoriesDialog
End Sub
Public Sub AddAwaitingFeedbackCategory()
Dim Mail As Object
Set Mail = Application.ActiveInspector.CurrentItem
Mail.Categories = "Awaiting Feedback"
End Sub
Public Sub AddTrackProgressCategory()
Dim Mail As Object
Set Mail = Application.ActiveInspector.CurrentItem
Mail.Categories = "Track Progress"
End Sub
@DirtyRaul
Copy link

DirtyRaul commented Apr 10, 2022

Hi

May I ask you if you could provide an edited VBA in order to call up the category items on any email, regardless if they are open or not?

Also, if possible, after categorising the email, be prompted to file it in a folder of my choice?

Thanks for any help.

@randyburden
Copy link
Author

@DirtyRaul, no can do. I haven't touched Outlook scripts in 6 years and wouldn't know where to start. Good luck on your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment