On Thu, August 23, 2012 3:37 pm, Sytze de Boer wrote:
> I'm having some difficulties with the following, and would appreciate
> some help
>
> I am forced to use Outlook with a client (Instead of Blat or Gmail)
>
>
> So, my prg says
> oOutlook = GetObject(,"Outlook.Application") But if Outlook is not open,
> this throws an error
>
> If i use
> TRY
> oOutlook = GetObject(,"Outlook.Application") CATCH
> oOutlook = CreateObject("Outlook.Application") ENDTRY
> it throws an error on oMailItem.Send()
>
> What am I doing wrong ?


Not sure, but why not use the CreateObject approach every time and just
release it when finished so as to not hog memory?

--Mike



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to