Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How to access command bars in outlook 2007 (http://www.outlookbanter.com/add-ins-outlook/89067-how-access-command-bars-outlook.html)

Ashish April 15th 09 03:48 PM

How to access command bars in outlook 2007
 
Application-ActiveExplorer-CommandBars trrow error in outlook 2007. How to
access command bars for outlook 2007



Ken Slovak - [MVP - Outlook] April 15th 09 04:37 PM

How to access command bars in outlook 2007
 
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" wrote in message
...
Application-ActiveExplorer-CommandBars trrow error in outlook 2007. How
to access command bars for outlook 2007



Ashish April 17th 09 11:07 AM

How to access command bars in outlook 2007
 
I get the command bar on raw_OnStartupComplete where it throw excedption for
outlook 2007. While for outlook 2003 it's ok.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
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" wrote in message
...
Application-ActiveExplorer-CommandBars trrow error in outlook 2007. How
to access command bars for outlook 2007





Ken Slovak - [MVP - Outlook] April 17th 09 03:25 PM

How to access command bars in outlook 2007
 
Try using Outlook.Application.Explorers[1] in that event handler rather than
ActiveExplorer(). See if that helps.

--
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" wrote in message
...
I get the command bar on raw_OnStartupComplete where it throw excedption
for outlook 2007. While for outlook 2003 it's ok.




All times are GMT +1. The time now is 12:31 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com