![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Anyone know VB code that WORKS for Outlook 2007 -- that
automatically BCCs all emails to an email address of your choosing? I tried using the following code: Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim objMe As Recipient Set objMe = ") objMe.Type = olBCC objMe.Resolve Set objMe = Nothing End Sub found at: http://www.outlookcode.com/d/code/autobcc.htm but for whatever reason, it doesn't work in Outlook 2007. I tried the same code in Outlook 2003 and it worked flawlessly. I guess some security prevents it from running in Outlook 2007. Any suggestions/comments would be greatly appreciated! -- * Posted with NewsLeecher v3.0 Beta 7 * http://www.newsleecher.com/?usenet |
Ads |
#2
|
|||
|
|||
![]() Quote:
Check the following coding ........... Dim objRecip As Recipient Dim strMsg As String Dim res As Integer Dim strBcc As String On Error Resume Next ' #### USER OPTIONS #### ' address for Bcc -- must be SMTP address or resolvable ' to a name in the address book strBcc = " Set objRecip = Item.Recipients.Add(strBcc) objRecip.Type = olBCC If Not objRecip.Resolve Then strMsg = "Could not resolve the Bcc recipient. " & _ "Do you want still to send the message?" res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _ "Could Not Resolve Bcc Recipient") If res = vbNo Then Cancel = True End If End If Set objRecip = Nothing |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto BCC in Outlook 2007 ? | [email protected] | Outlook and VBA | 7 | January 13th 07 09:28 AM |
auto bcc software recommendations | Eddie | Outlook - Installation | 4 | November 29th 06 08:20 PM |
Auto BCC to a fixed address | Proboscis | Outlook and VBA | 2 | July 19th 06 09:36 AM |
Automatic bcc in Outlook 2007 Beta | Peter Saxton | Outlook - General Queries | 2 | June 5th 06 09:33 PM |
Auto bcc or forward sent items with specified paramaters | tollyboi | Outlook - General Queries | 1 | January 10th 06 01:03 PM |