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

Auto-BCC in Outlook 2007 using VB code ? Devs please help!



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 9th 07, 07:25 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 4
Default Auto-BCC in Outlook 2007 using VB code ? Devs please help!

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  
Old May 27th 11, 09:09 AM
pctech33 pctech33 is offline
Banned
 
First recorded activity at Outlookbanter: May 2011
Posts: 2
Default

Quote:
Originally Posted by View Post
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
Hi,

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
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
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


All times are GMT +1. The time now is 04:52 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.