M
Marius Seglsten
I am trying to develope an AddIn for Microsoft Outlook where I wish to
add a CommandBar to the Explorer objects. I am using Visual Studio
..NET 2003.
I have two problems, depending on the version of Office that I am
running.
Outlook XP (2002):
When calling Application.ActiveExplorer() I always get an error saying
"The explorer has been closed and connot be used for further
operations". The same thing happens when trying to receive
notification of new Explorer instances by using the "NewExplorer"
event.
Outlook 2003:
In Outlook 2003 the Application.ActiveExplorer() works fine, but when
accessing the Explorer object recieved from the "NewExplorer" event, I
get the same error as in Outlook XP ("The explorer has been closed and
connot be used for further operations") in some situations:
1: When starting Outlook by running the executable, everything is ok.
2: When the Outlook process has been started by an external
application (like CreateObject("Outlook.Application")) the error
occurs.
I have tried a lot of different things, and nothing seems to work. I
have searched after others with similar problems, but haven't found
anyone at all. Please help!
Best regards,
Marius Seglsten
add a CommandBar to the Explorer objects. I am using Visual Studio
..NET 2003.
I have two problems, depending on the version of Office that I am
running.
Outlook XP (2002):
When calling Application.ActiveExplorer() I always get an error saying
"The explorer has been closed and connot be used for further
operations". The same thing happens when trying to receive
notification of new Explorer instances by using the "NewExplorer"
event.
Outlook 2003:
In Outlook 2003 the Application.ActiveExplorer() works fine, but when
accessing the Explorer object recieved from the "NewExplorer" event, I
get the same error as in Outlook XP ("The explorer has been closed and
connot be used for further operations") in some situations:
1: When starting Outlook by running the executable, everything is ok.
2: When the Outlook process has been started by an external
application (like CreateObject("Outlook.Application")) the error
occurs.
I have tried a lot of different things, and nothing seems to work. I
have searched after others with similar problems, but haven't found
anyone at all. Please help!
Best regards,
Marius Seglsten