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

idiot's guide to running a script...



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 2nd 07, 11:21 PM posted to microsoft.public.outlook.program_vba
llama thumper
external usenet poster
 
Posts: 2
Default idiot's guide to running a script...

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


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