View Single Post
  #2  
Old November 4th 08, 04:12 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default automatically show/hide toolbar

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


Ads