Now, the code is not setting the category in the ActiveExplorer.Selection with an email selected
but no open.
The category is working when I have an email open (ActiveInspector.CurrentItem) and
select the command button which activates the CustomActions_Categories() subroutine.
As far as adding the command button, all I'm doing is going in to Customize Toolbar mode
within either the email "Inspector" open to add to that form or with just the Outlook GUI
and adding it to an existing toolbar or one of my custom tb's.
I select the Macro category and there in the list are the two macros.
So, actually, all I need is the macro that activates the changing or the setting
of the Category label. But, need it to work in both circumstances that we've discussed.
What is this section intended to accomplish?
Set oNewCmdBar = Application.ActiveExplorer.CommandBars.Item(MY_CUSTOM_TOOLBAR__)
Set oNewButton = oNewCmdBar.Controls.Item(MY_CUSTOM_CATEGORIES_BUTTON__)
oNewButton.Caption = "Working..."
If the button caption is supposed to change during the macro, it's apparently too fast
to really display that. I'm struggling quite a bit with learning enough about VBA to
even be dangerous.