P
Peter
Outllook 2003 on XP Pro
I am trying to open Outlook and crate a message from Excel VBA module and I
am getting the following error
The Operation failed. - -2147287037: In RunExportProgram Function
(Every thing works fine if Outlook is already open, but not when it's
closed)
The same code works fine on other computers even when Outlook is closed.
Here's the code:
Dim OutlookApp As Object
Set OutlookApp = CreateObject("Outlook.Application")
Set Message = OutlookApp.Application.CreateItem(0) ' <-- This is where
the error occurs
Thanks
Peter
I am trying to open Outlook and crate a message from Excel VBA module and I
am getting the following error
The Operation failed. - -2147287037: In RunExportProgram Function
(Every thing works fine if Outlook is already open, but not when it's
closed)
The same code works fine on other computers even when Outlook is closed.
Here's the code:
Dim OutlookApp As Object
Set OutlookApp = CreateObject("Outlook.Application")
Set Message = OutlookApp.Application.CreateItem(0) ' <-- This is where
the error occurs
Thanks
Peter