Hi Ken,
Outlook 2003 (sorry I should have said)
I've got this far
Dim cb As CommandBar
Set cb = Application.ActiveExplorer.CommandBars("ESET Smart Security")
Does changing the current folder trigger some event in which the visible
property of the commandbar can be changed, or is there some other way to do
it.
Regards,
Peter T
"Ken Slovak - [MVP - Outlook]" wrote in message
...
What version of Outlook?
You can get the CommandBars collection for the ActiveExplorer object and
iterate that collection looking for the toolbar by name. Then you can use
the Visible property of the CommandBar object to set visibility to true or
false based on the ActiveExplorer.CurrentFolder.DefaultItemType property.
For mail items that property would be olMailItem.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Peter T" peter_t@discussions wrote in message
...
Hi,
A 3rd party AV app has created a toolbar that displays permanently. But
it's only useful in Mail view
Is it possible to make it visible when mail view is activated and not
visible in all other views (say when mail view is de-activated or any
other view activated),
TIA,
Peter T