+ Reply to Thread
Results 1 to 11 of 11

send file to a group of Outlook contacts

  1. #1
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    send file to a group of Outlook contacts

    I have a list of about 1000 customers, to whom I want to send a PDF file by email (Outlook).

    I do this by sending the mail to myself, and I put the customers in Bcc.

    Because 1000 is too much to handle, I want the customers separated in groups of 50, resulting in 20 similar mails to send.

    Can anyone help me to program this in VBA ?

    Thanks in advance.

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: send file to a group of Outlook contacts

    The easiest way would be to loop through all customers and send the same email to each one, with the PDF attached

    Not you sending each email but your VBA code handling that for you.

    I can help you with that, if that's the way you want to proceed?

  3. #3
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: send file to a group of Outlook contacts

    Thanks Croweater, but it needs to be in BCC. Otherwise I end up with having 1000 emails in the Sent folder...

    Even if these 1000 can probably also be deleted automatically.

  4. #4
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: send file to a group of Outlook contacts

    OK...here is some code for you to try.
    I stress that it is only tested with a handful of emails (for obvious reasons), however I am happy to help you implementing the code if you have problems.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: send file to a group of Outlook contacts

    Thanks Croweater

    at first glance, this seems to be a good solution ! I'll test it out after the Easter weekend and I will get back to you.

    Happy Easter !

  6. #6
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: send file to a group of Outlook contacts

    Hi Croweater

    as promised I get back to you.

    Here is how I solved the issue:

    - first I count the total number of email addresses
    - then I start a second incremental counter, which goes through the total list of email addresses
    - each time this counter reaches 50, 100, etcetera then a draft mail is created.
    - I loop until the counter reaches 1000.
    This solved my problem. Thanks anyway for your help.

    Th

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: send file to a group of Outlook contacts

    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 those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: send file to a group of Outlook contacts

    OK Ali !

    I'm new to this forum.

    Thanks for your advice !

  9. #9
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: send file to a group of Outlook contacts

    Sounds like you didn't need me in the first place. Thanks for wasting my time.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: send file to a group of Outlook contacts

    I am sure that someone else will benefit from the code in this thread in the future, so nothing is ever a waste of time. Thanks for providing a solution.

  11. #11
    Registered User
    Join Date
    04-03-2021
    Location
    ghent, belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: send file to a group of Outlook contacts

    Basically, your solution included a "Counter" and this was the needed step towards the alternative solution I developed. So it was of great help. Thanks again.

+ 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. Replies: 2
    Last Post: 03-03-2019, 02:50 AM
  2. Outlook-automatically send messages to specific contacts
    By AlexAXL in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2019, 02:58 AM
  3. [SOLVED] use outlook group to send email using excel 2013 vba
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2016, 10:50 AM
  4. Replies: 4
    Last Post: 05-01-2014, 09:36 AM
  5. Import Outlook group contacts into Excel VBA ComboBox?
    By niklas.negri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2013, 02:57 AM
  6. [SOLVED] Name list in Excel, make as Group Contacts in Outlook
    By johnandrews in forum Excel General
    Replies: 2
    Last Post: 12-17-2013, 11:49 AM
  7. Replies: 1
    Last Post: 12-31-2007, 09:28 AM

Tags for this Thread

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