PC Review


Reply
Thread Tools Rate Thread

How to access command bars in outlook 2007

 
 
Ashish
Guest
Posts: n/a
 
      15th Apr 2009
Application->ActiveExplorer->CommandBars trrow error in outlook 2007. How to
access command bars for outlook 2007


 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      15th Apr 2009
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
>


 
Reply With Quote
 
Ashish
Guest
Posts: n/a
 
      17th Apr 2009
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>>

>



 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      17th Apr 2009
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I get the command bar on raw_OnStartupComplete where it throw excedption
>for outlook 2007. While for outlook 2003 it's ok.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide ribbon+command bars in 2003/2007 for specific file dgold82 Microsoft Excel Programming 3 26th Apr 2009 05:38 PM
How find Command bars and controls in PPT 2007. They exist! Bob Microsoft Powerpoint 4 3rd Nov 2008 08:55 AM
Custom command and Menu bars in Access 2007 =?Utf-8?B?anNyb2dvbA==?= Microsoft Access VBA Modules 5 1st May 2008 11:51 PM
Most non built-in command bars invisible in Excel 2007... Tricky Microsoft Excel Programming 0 12th Mar 2008 10:59 AM
Running Access 2003 in Access 2007 - Custom Menus and COmmand Bars Aussie Jeff Microsoft Access Form Coding 1 2nd May 2007 01:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 PM.