+ Reply to Thread
Results 1 to 5 of 5

VBA to send multiple emails

  1. #1
    Forum Contributor
    Join Date
    09-21-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    131

    VBA to send multiple emails

    Hello all,

    I have got a table with emails listed:

    Company Email
    AMKL amkl@amkl@amkl.com
    HFTS hfts@hfts.com

    Also I've got separate sheets named identically to the company name. I a macro that will send the emails with a range from a matching sheets. I'm thinking the best option to do it would be using the method below. But ould you suggest me how do I put it into the loop?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-21-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    131

    Re: VBA to send multiple emails

    Ok guys,

    Currently I'm using this code below. But the problem is I got 11 sheets to send out individually. That means I got 11 separate macros and to send the emails out I need to start call them all. Cant this be done in the loop so it is more efficient to run it?

    Please Login or Register  to view this content.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,352

    Re: VBA to send multiple emails

    This will give you an idea of how it can be done.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,352

    Re: VBA to send multiple emails

    I assume my answer helped in some way since you added rep points?
    Anyway, thanks for adding the rep points.

  5. #5
    Forum Contributor
    Join Date
    09-21-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    131

    Re: VBA to send multiple emails

    Yes it was helpful, straight to the point. Thank you.

+ 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. [SOLVED] Send multiple emails with one attachment each
    By unix17 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2016, 08:02 PM
  2. Using Excel to send Multiple emails and logging
    By Ambience247 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2016, 04:38 PM
  3. Send Emails once expiry date is reached, and generate report based on emails sent
    By demonicscorpion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 05:36 AM
  4. [SOLVED] Macro To Send Emails with PDF: Multiple Emails and PDF's
    By totoga12 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-19-2014, 06:13 PM
  5. VBA to send multiple emails does not complete
    By gillyr7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2014, 10:01 AM
  6. VBA to send multiple emails with different attachments
    By gillyr7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2014, 02:33 PM
  7. Send emails to multiple addresses
    By jenksie101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2010, 09:53 AM

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