Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autofill BCC with an email address in Outlook 1

Status
Not open for further replies.

newguy86

Technical User
May 19, 2008
226
US
Is there a way that I can autofill the 'BCC' field with an email address everytime I click on the new mail message button? I know the correct syntax to autofill the field but what I don't know is how to get it to occur when I click the new mail message button in Outlook.

Travis
 
If you want to use VBA then you can put the code in the Application_ItemSend event which fires everytime a mailitem is sent.

Hope this helps

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
Glad to help (and thanks for the star), hope it works for you [smile]

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
I cannot seem to get the code to activate when I click on the send button. Can anyone tell me what I am doing wrong?

Code:
Public WithEvents olApp As Outlook.Application

Public Sub Initialize_handler()
    Set olApp = CreateObject("Outlook.Application")
End Sub

Private Sub olApp_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim olmail As MailItem
    olmail.BCC = [E-mail Address]
End Sub


Travis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top