Thanks. I will try this and watch the behaviour of my scheduled job.
Rgrds
JL
"Eric Legault [MVP - Outlook]" wrote:
Try checking the value of NameSpace.ExchangeConnectionMode. You should
always be able to retrieve a valid Outlook.Application object though,
regardless of what it is trying to connect to or it's connection state. You
didn't show all of your code so I don't know exactly what you are trying to
do or when.
--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
"jeanLuc" wrote:
I have some code I use to handle mail messages (Outlook 2003) with VB/VBA as
follows:
Dim objOutlook As Outlook.Application
Set objOutlook = CreateObject("Outlook.Application")
etc....
The code works fine except when the Exchange Server is unavailable (Popup
message Your Microsoft Exchange Server is unavailable / Retry - Work Offline
- Cancel)
Is it possible, programmatically (VB or VBA), to check the availability of
the Exchange Server before using Outlook features ?
Thanks a lot. Regards.
Jean-Luc