P
PeterGates
I'm trying to set up a macro that opens the Categories dialog for items I
select from the Inbox (or other Outlook folder). Using the code below I can
assign categories for single mail items in turn (ie the dialog opens, I
select categories, they are applied to the first item and then the dialog
opens again for the next item).
Can anyone tell me a way to have the same cateories apply to the multiple
messages I select?
------
Sub ShowCategoriesDialog()
Dim OlExp As Outlook.Explorer
Dim OlSel As Outlook.Selection
Dim x As Integer
Set OlExp = Application.ActiveExplorer
Set OlSel = OlExp.Selection
For x = 1 To OlSel.Count
OlSel.item(x).ShowCategoriesDialog
Next x
End Sub
------
select from the Inbox (or other Outlook folder). Using the code below I can
assign categories for single mail items in turn (ie the dialog opens, I
select categories, they are applied to the first item and then the dialog
opens again for the next item).
Can anyone tell me a way to have the same cateories apply to the multiple
messages I select?
------
Sub ShowCategoriesDialog()
Dim OlExp As Outlook.Explorer
Dim OlSel As Outlook.Selection
Dim x As Integer
Set OlExp = Application.ActiveExplorer
Set OlSel = OlExp.Selection
For x = 1 To OlSel.Count
OlSel.item(x).ShowCategoriesDialog
Next x
End Sub
------