![]() |
|
#4
|
||||
|
||||
|
The GetNamespace line is required!
If your distribution list names are the same as the folder names then change the folder related code as follows, but while testing ensure that Outlook is not configured to send immediately of you will send the test message to the contact group: Code:
Private Sub Newsletters_ItemAdd(ByVal item As Object)
On Error GoTo err_Handler
Set olItem = item.Forward
olItem.BCC = "Newsletters"
olItem.sEnd
lbl_Exit:
Exit Sub
err_Handler:
MsgBox Err.Number & " - " & Err.Description
GoTo lbl_Exit
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Rule to move sent messages to a specific folder
|
LouisOscar | Outlook | 1 | 08-17-2011 05:42 AM |
| Auto Forward Emails - Specific Time Periods Only | Dav | Outlook | 0 | 06-22-2011 12:03 PM |
Create Rule to forward message to mobile#
|
JoyConner | Outlook | 1 | 04-21-2011 05:44 PM |
| Forward Unread Messages after X Minutes? | BamaBrad | Outlook | 2 | 03-13-2011 07:57 AM |
| Code to auto-forward weekend messages | Whang | Outlook | 0 | 06-16-2010 02:18 PM |