![]() |
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
|
|||
|
|||
![]()
dear all,
apologies in advance, but am a complete VBA newbie. I'd like to auto-BCC all my emails. i've looked through the web, and found several links on how to do this, using VBA: http://groups.google.com/group/micro...01740e3454ea1d and http://www.outlookcode.com/d/code/autobcc.htm i've used the approach described he www.outlookcode.com/article.aspx?id=49 now, once again, apologies (must sound like a _real_ newbie, which i am!), but the problem i have is that i don't know how to actually 'run' the code. here are the steps I take: set the trust center to warn on all macros. in outlook 2007, alt+f11, which opens up VBA. double click on 'this outlook session'. double click on microsoft office outlook objects, to expand it. double click on 'ThisOutlookSession'. paste in the following code on the right: 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 now: when I press F5 in VBA, or alt-F8 in outlook, i get asked for what macro I want to run - the list is empty however. (assuming I did manage to get it to appear as a macro, would there be any way to automate this - ie so that every message automatically does a BCC with an email address, without me having to run the macro each time?). just FYI, upon restarting outlook i did get a dialogue to approve 'thisoutlooksession', which i did. but i still don't know what to do do actually make it work/run it. any help would be gratefully received! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
script for running out of office reply in Pop3 | Enzo De Raco[_2_] | Outlook and VBA | 0 | August 30th 07 05:30 PM |
Running a script when Outlook runs for the first time | [email protected] | Outlook - Installation | 1 | August 4th 06 01:45 PM |
Rule 'run a script' not running my script | [email protected] | Outlook and VBA | 3 | May 30th 06 01:09 PM |
Script error while running .Net Code | Muhammad Usman | Outlook - Using Forms | 1 | May 4th 06 01:17 PM |
Problem running a VBA script from an Outlook rule | Olivier Langlois | Add-ins for Outlook | 5 | March 16th 06 10:03 PM |