+ Reply to Thread
Results 1 to 8 of 8

Outlook bcc macro

  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    96

    Outlook bcc macro

    Dear all,
    i am using below auto-bcc macro. but then i started to need to send to 2 different mails in bcc, not only one. how can i add the second one? thank you.

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim R As Outlook.Recipient
    Dim Address$
    Address = "xxx@gmail.com"
    Set R = Item.Recipients.Add(Address)
    R.Type = olBCC
    R.Resolve
    End Sub

  2. #2
    Forum Guru
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,860

    Re: Outlook bcc macro

    Hi turkanet,

    Try separating the addresses with a semi colon:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    96

    Re: Outlook bcc macro

    No it didnt work Lewis. i tried also Address = "xxx@gmail.com" & "yyy@gmail.com",
    also tried Address = "xxx@gmail.com" & ";" & "yyy@gmail.com"
    can you help to find me a way?

  4. #4
    Forum Guru
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,860

    Re: Outlook bcc macro

    Hi,

    The following code may work. I tested it in Outlook 2016, but Outlook is not my eMail of choice, so I have no address book.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    96

    Re: Outlook bcc macro

    Unfo received attached msg
    Attached Images Attached Images

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,597

    Re: Outlook bcc macro

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  7. #7
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    96

    Re: Outlook bcc macro

    Thank you, works fine

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,098

    Re: Outlook bcc macro

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Outlook New_Mail Event Macro to Call Excel Macro
    By christopheralan88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2015, 06:28 PM
  2. Outlook Macro Fails to run Excel macro with Visibility = False
    By rvdurham in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2014, 12:51 AM
  3. Create Outlook Reminder on Excel and transfered to outlook by macro
    By Benjamin2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2013, 03:23 PM
  4. [SOLVED] VBA Macro to print to Pdf format and place as attachment in Outlook (Excel & Outlook 2007)
    By Webman1012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 01:25 PM
  5. outlook redemtion macro cant send mail if outlook is not open ?
    By okl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-03-2010, 07:35 AM
  6. outlook macro
    By lukeois in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2009, 11:21 AM
  7. Macro in Outlook
    By danison in forum Excel General
    Replies: 0
    Last Post: 05-31-2005, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1