D
David
Hello,
I am trying to gracefully manage intercation with outllook2003 via VB6.
I am using this to detect if outlook is loaded:
On Error Resume Next
Set myOlApp = GetObject("", "Outlook.Application")
If Err.Number <> 0 Then
MsgBox "oops, Outlook not running."
...
But outlook might be loaded but not operational for queries I have later.
The reason is that the user needs to complete password selecting connect
mode, offline mode. Only then outlook is ready for further iqueries (I want
to check the appointments).
In case that the user hit cancel or password is incorrect then i get funny
dialog box from the OS to retry, resume that can lead to hang or crush of my
VB app.
How can i make sure that outlook is:
1. loaded
2. ready for further "discussion"
If outlook is not ready (as defined above) i want to provide a message to
user to properly complete launch outlook.
Thanks
David
I am trying to gracefully manage intercation with outllook2003 via VB6.
I am using this to detect if outlook is loaded:
On Error Resume Next
Set myOlApp = GetObject("", "Outlook.Application")
If Err.Number <> 0 Then
MsgBox "oops, Outlook not running."
...
But outlook might be loaded but not operational for queries I have later.
The reason is that the user needs to complete password selecting connect
mode, offline mode. Only then outlook is ready for further iqueries (I want
to check the appointments).
In case that the user hit cancel or password is incorrect then i get funny
dialog box from the OS to retry, resume that can lead to hang or crush of my
VB app.
How can i make sure that outlook is:
1. loaded
2. ready for further "discussion"
If outlook is not ready (as defined above) i want to provide a message to
user to properly complete launch outlook.
Thanks
David