A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to access command bars in outlook 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 15th 09, 04:48 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default How to access command bars in outlook 2007

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


Ads
  #2  
Old April 15th 09, 05:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old April 17th 09, 12:07 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default 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




  #4  
Old April 17th 09, 04:25 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing outlook 2007 default behaviour (follow up - flag for me,menu bars in email creation, adding appointment to a diff calendar fromappointment window) [email protected] Outlook - Installation 3 June 14th 08 10:03 AM
Outlook 2007 command line switch [email protected] Outlook - General Queries 2 March 7th 07 10:57 PM
Send Command in Outlook 2007 Disapeared Saputo Outlook - General Queries 5 March 1st 07 07:48 PM
Problem Accessing command bars on Outlook 2003 Douglas Abbink Add-ins for Outlook 2 December 8th 06 06:04 PM
Cant access web sites fron RUN command-only through Google carpetbagger Outlook Express 4 March 22nd 06 05:32 PM


All times are GMT +1. The time now is 08:29 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-2025 Outlook Banter.
The comments are property of their posters.