>The following code is generating an error:
>
>loOutlook=CREATEOBJECT('outlook.application')
>loMessage = loOutlook.createitem(0)
>
>
>I have Outlook 2003. The error is "OLE IDispatch exception code 4096 from Microsoft Office Outlook: The operation failed..."
>
>Any ideas?
I had tried to run your code on my dev machine and didn't recieve any error message, I manage to display the new message window.
Try upgrading your MS office to SP2...if still has errors.. I can say no more..