Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Using VBA to load the CC line on an Outlook email (http://www.outlookbanter.com/outlook-vba/98626-using-vba-load-cc-line.html)

Glenn Suggs January 5th 10 01:55 PM

Using VBA to load the CC line on an Outlook email
 
Can someone please help me in loading the CC line in an email from VBA in
Access? I have the following for the "To" line that works fine. Is there an
equivalent statement to load the CC?

Dim olRecipient As Recipient
strEmailRecipient = "

Set olRecipient = olMessage.Recipients.Add(strEmailRecipient)

Thanks in advance
--
Glenn

Ken Slovak - [MVP - Outlook] January 5th 10 02:11 PM

Using VBA to load the CC line on an Outlook email
 
Set olRecipient = olMessage.Recipients.Add(strEmailRecipient)
olRecipient.Type = olCC ' or olTo or olBCC

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Glenn Suggs" wrote in message
...
Can someone please help me in loading the CC line in an email from VBA in
Access? I have the following for the "To" line that works fine. Is there
an
equivalent statement to load the CC?

Dim olRecipient As Recipient
strEmailRecipient = "

Set olRecipient = olMessage.Recipients.Add(strEmailRecipient)

Thanks in advance
--
Glenn



Glenn Suggs January 6th 10 05:42 PM

Using VBA to load the CC line on an Outlook email
 
Thanks a million, Ken. It works great.
--
Glenn


"Ken Slovak - [MVP - Outlook]" wrote:

Set olRecipient = olMessage.Recipients.Add(strEmailRecipient)
olRecipient.Type = olCC ' or olTo or olBCC

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Glenn Suggs" wrote in message
...
Can someone please help me in loading the CC line in an email from VBA in
Access? I have the following for the "To" line that works fine. Is there
an
equivalent statement to load the CC?

Dim olRecipient As Recipient
strEmailRecipient = "

Set olRecipient = olMessage.Recipients.Add(strEmailRecipient)

Thanks in advance
--
Glenn


.



All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com