>I'm creating an Outlook object (oOutlook = CREATEOBJECT("Outlook.Application")) and immediately after a message object (oMessage=oOutlook.CreateItem(0)).
>
>If Outlook isn't running before these two statements, an error pops up: #1429 on *second* line with message:
>'OLE IDispatch exception code 61704 from Microsoft Outlook: Internal application error'.
>
>If Outlook is running beforehand, everything's perfect.
>
>I tried with putting a 5 and 10 seconds pause in between these two statements to no avail.
>
>Have anybody seen this?
DO you test to make sure the CreateObject worked? Do you use vartype() to check the oOutlook object? You could also use type() to check a property of the object (like Name) to make sure it is of type character.
It sounds like Outlook isn't being instantiated at all.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao