I am trying to set email categories for the current selection. When I run the macro, I get only one message specified by this category. I use the following code (and also tried to use do until ... not using selection.count):
Sub SetSelectionComplete()
Dim mailMsg As MailItem
For Each mailMsg In Outlook.Application.ActiveExplorer.Selection
mailMsg.Categories = "Complete"
Next
End Sub
Any ideas?
source
share