Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Auto BCC in Outlook 2007 ?

12 views
Skip to first unread message

Unknown

unread,
Jan 9, 2007, 1:15:11 AM1/9/07
to
Hello,

I've spent most of the evening trying to run an AUTO BCC VB code in
Outlook 2007. I tried the same code in Outlook 2003 and it worked
beautifully, but it will not work in Outlook 2007 (presumably due to
the Trust Center or whatever).

Any ideas on how to automatically get every email to send a BCC copy
to the email address of your choice?

The code I used was:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim objMe As Recipient
Set objMe = Item.Recipients.Add("myad...@mydomain.dom")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub


This code was taken from:
http://www.outlookcode.com/d/code/autobcc.htm

Thanks for any suggestions!
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet

Michael Bauer [MVP - Outlook]

unread,
Jan 9, 2007, 4:16:16 AM1/9/07
to

That code also works in OL07. Did you check the security settings already?
You could set a breakpoint at a line of code and see if the execution stops
there.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Unknown

unread,
Jan 9, 2007, 11:56:25 AM1/9/07
to
I did check the security settings - I couldn't find anything that
could be preventing it from executing.

At one point, I tried something and when I checked the sent items
folder, the address of my choice HAD been added to the BCC, but the
server simply did not send the email to the BCCed address (only to
the TO address).

Also, how would I go about adding a break point?

Any other ideas/suggestions?

Thanks for taking the time to reply Michael!

Michael Bauer [MVP - Outlook]

unread,
Jan 12, 2007, 2:44:42 AM1/12/07
to

Sorry, I couldn't test that earlier. I still have the Beta installed and
here it doesn't work at all. On sender site all seems to be ok but the BCC
doesn't get the message. Instead my To recipient gets the message twice.

Ken, do you know something about that?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Ken Slovak - [MVP - Outlook]

unread,
Jan 12, 2007, 10:10:36 AM1/12/07
to
Beats me, the code works perfectly here. All I did was change the Bcc
address to one of mine. I sent an email to my dog and it was Bcc'd to the
address I had selected.

To set a breakpoint you would place the cursor on the line where you want
the breakpoint set and use F9 to toggle the breakpoint.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Bauer [MVP - Outlook]" <m...@mvps.org> wrote in message
news:1g20gw6kr7j2f.r...@40tude.net...

Unknown

unread,
Jan 12, 2007, 12:41:13 PM1/12/07
to
Thanks for the reply guys. I really appreciate it!

Just for anyone else reading in, I figured it out with the help of a
forum. All I needed to do was -- once I lowered the macro security
settings in Outlook 2007, I failed to restart Outlook when testing
it. That was the difference maker =/ Works beautifully now with the
exact code I posted!

Thanks for the info for breakpoints - could come in use in the
future =)

Michael Bauer [MVP - Outlook]

unread,
Jan 13, 2007, 3:27:47 AM1/13/07
to

Thanks Ken. What a pure chance: In OL07 Beta it really didn't work.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Michael Bauer [MVP - Outlook]

unread,
Jan 13, 2007, 3:28:55 AM1/13/07
to

Now I'm very curious: How could the address have been added (as seen in the
SentItems) if the code didn't run at all?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

0 new messages