ActiveExplorer return NULL on new Window user login and running Outlook first time

Not open for further replies.

Basha Shaik

New Member
Outlook version
Outlook 2010 64 bit
Email Account

I'm exactly facing the same issue where ActiveExplorer() is returning NULL.
(ActiveExplorer return NULL on new Window user login and running Outlook first time)

Details as below
i. using Outlook 2010.
ii. using a COM add-in extending IDTExtensibility2
iii. In the OnConnection() method, I'm calling ActiveExplorer().

1. When Outlook is launched by double-clicking the icon, everything works fine. i.e ActiveExplorer() return a valid value. It doesn't return NULL. All is well here.

But in some of the cases (when winword is opened, as as explained in this thread), Outlook gets launched with a command line argument '-Embedding' in which case, it would be running in the background without any 'User Interface'.
In this case, ActiveExplorer() returns NULL when OnConnection() is called.

Now, when Outlook is launched by double-clicking, new outlook process gets launched and exits where as the old outlook instance that has been running in background is brought to foreground, displaying the User Interface.

I tried to make a call to ActiveExplorer() on the saved object, CComQIPtr <Outlook::_Application> in GetCustomUI method of the interface IRibbonExtensibility

ActiveExplorer() returns NULL value, still.

For case(2), how can I get ActiveExplorer() to return a Non-Null value when Outlook comes to foreground so that I can register for the events folder change/view change/selection change.

Not open for further replies.
Thread starter Similar threads Forum Replies Date
S ActiveExplorer return NULL on new Window user login and running Outlook first time Outlook VBA and Custom Forms 19
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
H Select/Unselect items in ActiveExplorer by code? Outlook VBA and Custom Forms 2
R The return of weird graphical glitches in Outlook? Using Outlook 2
H Return Highest Level Email Folder Outlook VBA and Custom Forms 2
B return to inbox Using Outlook 5
icacream outlook 2007 - how do I stop spacing when I hit return ? Using Outlook 4
G Possible to create reports that return contacts based on account criteria? BCM (Business Contact Manager) 0
R Return Address Using Outlook 1
T Inserted indicies in my text of return or forwarded messages Using Outlook 1
L Microsoft Office 2003 Email: Return-path Using Outlook 2
I Mailbox Audit log don't return results. Exchange Server Administration 4
J Outlook 2003 personal folder downloading from Exchange 2003 Some email blank, some email ok, but when return to read again some are blank. Using Outlook 3
D Emails return to original folder after being moved. Using Outlook 1
G Stop automatic capitalisation fo first letter after hitting return!!!!!__I've searched for help everywhere. (Office 2007, Outlook). Using Outlook 1
M DL lost alpha, changed based on icons on left side of name,need to return to alpha. What do icons mean? Using Outlook 1
S Replies/Forwards return error 0x80004005-0xfffff9bb-0x000501 Using Outlook 1
A EWS 2010 does not return any error message Exchange Server Administration 4
N The vertical scroll bar crashes to the bottom of the page and will not return to any point above the bottom. This happens in the email and the list of Using Outlook 1
L then return paragragh symbols are showing up when i go to send a new email Using Outlook 1
A Attachments to Return Receipt message Using Outlook 7
E Unspecified Error when forwarding or sending return mail Using Outlook 3
S null sender Exchange Server Administration 1
E Remote PowerShell Error: Value cannot be null Exchange Server Administration 7
A SP1 GAL Issue: Coudln't find a global address list for user '(null)' Exchange Server Administration 8
S CAS install failed - "Value cannot be null. Parameter name: key" Exchange Server Administration 7
J NULL Outlook VBA and Custom Forms 6
D Application.ActiveInspector() is Null on Ribbon Load Outlook VBA and Custom Forms 1
P Inspector.WordEditor always returns null Outlook VBA and Custom Forms 3
Similar threads