I am running WinXP Professional SP1, Outlook 2002 (I have installed all critical windows updates). I've run this code a million times before, no problem. Recently I've been getting a 'Choose Profile' dialog and a Windows Script Host error when running the code in vbs. This only happens if there is no Outlook running at all. If Outlook is running, I do not get an error. This happens regardless of number of profiles setup, or if any of these profiles is the default or not. The first time it runs, I get the login dialog and the error, but an Outlook object is created, as I can see it in Task Manager. I run the code again, and this time no error since Outlook has been instantiated. Has anyone come across this problem? Any suggestions?
The error is:
Code: 80010108
Error: The object invoked has disconnected from its clients.
The code is:
Set oOL = CreateObject("Outlook.Application")
Set oOL = Nothing
The error is:
Code: 80010108
Error: The object invoked has disconnected from its clients.
The code is:
Set oOL = CreateObject("Outlook.Application")
Set oOL = Nothing