#16
|
||||
|
||||
The existing code is
Code:
With olOutMail .Subject = .Subject & strSubject .To = strAddr .Send End With Code:
With olOutMail .Subject = .Subject & strSubject .To = strAddr .CC = "someone@somewhere.com" 'The address of the CC recipient .Send End With
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#17
|
|||
|
|||
Thank you - works perfectly!
(I'd thought to try that, but was put off because for the "TO" field you used strAddr, and defined the actual email address elsewhere. If you have a minute, and feel like explaining, is there a reason that you did that originally and didn't do that for the CC field just now?) |
#18
|
||||
|
||||
You can do it either way. You could equally have created another string Constant e.g.
Const strCC as String = "someone@somewhere.com" and used .CC = strCC The result would be the same.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#19
|
|||
|
|||
Thanks, Graham!
|
Tags |
autoforward, edit subject |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2013 Auto Forward / Auto Redirect emails not working | katm3 | Outlook | 4 | 08-07-2015 01:50 AM |
Need to forward subject alone of mails | abhikulsh | Outlook | 1 | 08-28-2013 10:47 AM |
Forward emails not opening, why? | alexb123 | Outlook | 0 | 10-19-2012 02:22 PM |
Auto Subject Line | hollwall | Outlook | 0 | 04-19-2012 08:49 AM |
Auto Forward Emails - Specific Time Periods Only | Dav | Outlook | 0 | 06-22-2011 12:03 PM |