Assuming you actually have an ActiveExplorer(), it should work and provide
access to the CommandBars collection of that Explorer. I use
Application.ActiveExplorer.CommandBars all the time in Outlook 2007 VBA
code.
Of course if this is running somewhere other than in Outlook VBA the
Application object probably doesn't refer to Outlook.Application.
--
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
"Ashish" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Application->ActiveExplorer->CommandBars trrow error in outlook 2007. How
> to access command bars for outlook 2007
>