How to access command bars in outlook 2007

Status
Not open for further replies.
A

Ashish

Application->ActiveExplorer->CommandBars trrow error in outlook 2007. How to

access command bars for outlook 2007
 
K

Ken Slovak - [MVP - Outlook]

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.

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:Ow9JomdvJHA.192@TK2MSFTNGP05.phx.gbl...
> Application->ActiveExplorer->CommandBars trrow error in outlook 2007. How
> to access command bars for outlook 2007
>
 
A

Ashish

I get the command bar on raw_OnStartupComplete where it throw excedption for

outlook 2007. While for outlook 2003 it's ok.
<kenslovak@mvps.org> wrote in message

news:uLm4lAevJHA.4364@TK2MSFTNGP03.phx.gbl...
> 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.

> >

>

> "Ashish" <akohli_2004@hotmail.com> wrote in message
> news:Ow9JomdvJHA.192@TK2MSFTNGP05.phx.gbl...
> > Application->ActiveExplorer->CommandBars trrow error in outlook 2007. How
> > to access command bars for outlook 2007
> >

>
 
K

Ken Slovak - [MVP - Outlook]

Try using Outlook.Application.Explorers[1] in that event handler rather than

ActiveExplorer(). See if that helps.

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:e49UFS0vJHA.1536@TK2MSFTNGP05.phx.gbl...
> I get the command bar on raw_OnStartupComplete where it throw excedption
> for outlook 2007. While for outlook 2003 it's ok.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L Outlook Data Files command not working in the quick access bar Using Outlook 1
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
J Text icon in Quick Access toolbar ? Using Outlook 2
Z Import Tasks from Access Using VBA including User Defined Fields Outlook VBA and Custom Forms 0
klpconsulting Programmatic Access Office 365 Pro Plus & RDS Using Outlook 1
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
Jennifer Murphy Grant R/W (update) access to a friend Using Outlook 3
O The page that you are trying to access cannot be loaded. Using Outlook 0
T Render Outlook emails in MS access as they appear in Outlook Outlook VBA and Custom Forms 2
T Outlook "A program is trying to access Outlook" Using Outlook 3
GregS Can't access archive file Using Outlook 5
J What is the best EntryID format to set on MS Access table Outlook VBA and Custom Forms 3
J No access to a Database BCM BCM (Business Contact Manager) 3
R How can I access my emails from corrupt offline files of MS Outlook ? Using Outlook 1
V Change default default save location to Quick Access Using Outlook 1
R Quick Access view in File Explorer when saving attachments Using Outlook 0
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
J Open an outlook email by Subject on MS Access linked table with VBA Outlook VBA and Custom Forms 10
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
D populating listbox on custom form from Access Outlook VBA and Custom Forms 7
O Synchronize safe persons Outlook 2016 -> Outlook Web Access (OWA) Using Outlook 30
K How to access emails found to be located in "Top of Outlook data file"? Using Outlook 3
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
O Outlook Web Access - how to disable spam filter Using Outlook 6
T Lost access to remote BCM database BCM (Business Contact Manager) 4
F Outlook 2016 bulk email from access Outlook VBA and Custom Forms 3
J Programmatic access grayed out Using Outlook 10
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? Using Outlook 0
G Can't open .pst. Message could not access default folder (Outlook 2010 (.pst). Before that was backi Using Outlook 0
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
T Cannot access outlook.com accounts in Outlook 2016 Using Outlook 1
B Can't expose sender email address when linking outlook to access Using Outlook 3
Diane Poremsky Change Outlook's Programmatic Access Options Using Outlook 0
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
C OWA External Access - No URL / URL Invalid Exchange Server Administration 2
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
C Merging Word and Access into Outlook Using Outlook 4
I Outlook 2016 and Slow access to Outlook.com IMAP Using Outlook 0
B No permission to access Outlook.pst file Using Outlook 1
Norbert VBA Flag that would indicate the email was sent from Outlook to Access. Outlook VBA and Custom Forms 2
M Cannot access the Form Editor BCM (Business Contact Manager) 1
R The changing way to access information in Office 365 Using Outlook 0
M Modifying BCM Database using Access BCM (Business Contact Manager) 1
iwshim Skype tool bar in quick access ribon Using Outlook 1
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
U Cannot access fields at bottom of Outlook 2013 Contact Rec. Using Outlook 1
S Can't move the items. The item could not be moved. It was either already moved or deleted, or access Using Outlook 3
A Synchronize Access Table with Outlook Calendar Appointments Outlook VBA and Custom Forms 3

Similar threads

Top