A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Using VBA to load the CC line on an Outlook email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 5th 10, 01:55 PM posted to microsoft.public.outlook.program_vba
Glenn Suggs
external usenet poster
 
Posts: 4
Default 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
Ads
  #2  
Old January 5th 10, 02:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old January 6th 10, 05:42 PM posted to microsoft.public.outlook.program_vba
Glenn Suggs
external usenet poster
 
Posts: 4
Default 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


.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't load graphics in my email Margaret Bartley[_2_] Outlook - General Queries 1 October 23rd 09 03:05 PM
Prompt email subject line when creating a new email outlook 2003 macster Outlook and VBA 1 January 5th 09 02:04 PM
Load request form fails: Could not load some objects because they arenot available on this machine [email protected] Outlook - General Queries 1 August 5th 08 10:22 PM
Outlook 2007 takes forever to load graphics in an email Corky D Outlook - General Queries 3 June 4th 07 11:03 PM
How do I get the BCC line to always appear in a new Outlook email Jennifer Outlook - General Queries 2 May 30th 06 11:52 PM


All times are GMT +1. The time now is 11:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.