Test If Exchange Server Is Available

B

Bruce McCormick

I have a VBA program in Word that invokes the Outlook address book. However,
if the Exchange Server is not available, the program hangs for a long period
of time. Even then, it doesn't generate an error message; it just displays
an empty dialog.

I need to know how to test if the Exchange Server is available. If not, I
want to generate an error message. Testing for Outlook running is not
sufficient. (I know how to do this.) It is not necessary to have Outlook
running, but it is necessary to be connected to the network, so that the
user can access the Exchange Server.
 
B

Bob

Hi Bruce,

Without looking at your code, are you doing a MAPI "Logon" function call to
connect to the exchange server? You could check the return code from this
function call

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top