Steve
Thanks for the outlook object model reference, I was able to find it on my machine also and it will be a good resource in the future.
Made changes and it works great.
Thanks again!!
Gaylen
>Gaylen,
>
>See the additions to code below. On my machine, the Outlook object model is found in VBAOUTL9.cHM.
>
>>I need to use the bcc function of outlook and am having trouble with the syntex.
>>
>>The following doesn't seem to work. Probably bcc is incorrect.
>>
>>omail.bcc.add("bccrecipients&home.com")
>>
>>CODE use to create object
>>
>oOUTLOOK= Createobject('outlook.application')
>omail=oOUTLOOK.createitem(0)
>omail.recipients.add("tobesentname@comcast.net")
>oRecipient = omail.recipients.add("bccrecipients@home.com")
>oRecipient.type = 3
>
>>
>
>Here are the recipientTypes:
>
>* OlMailRecipientType
>#define olOriginator 0
>#define olTo 1
>#define olCC 2
>#define olBCC 3