+ Reply to Thread
Results 1 to 5 of 5

Send an email via macro with dynamic recipient address

  1. #1
    Registered User
    Join Date
    09-28-2017
    Location
    Tampa
    MS-Off Ver
    2017
    Posts
    7

    Send an email via macro with dynamic recipient address

    Hi All,

    I am attempting to automate a loooong process in which I have to send 100s of emails to individual recipients.

    Is there a way to automate an email to a list of recipients BUT only send to one recipient at a time? Here is an example of what I am attempting to do (attached and screenshot):
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Send an email via macro with dynamic recipient address

    it is doable, you would need a loop to loop thru each of those emails in the column, and for each email, execute the email code.
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Send an email via macro with dynamic recipient address

    Try this code, but take it from the attachment since the HTML in the code has added spaces so the code can post.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-28-2017
    Location
    Tampa
    MS-Off Ver
    2017
    Posts
    7

    Re: Send an email via macro with dynamic recipient address

    _______________________________________________________________



    Absolutely perfect! Thank you.

    I should have asked in my original question, but what if I want to embed a picture. Here (attached) is what I was using previously without dynamic emails. Is there any way I can add this to your code? I tried to add it in the body but was unsuccessful.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-28-2017
    Location
    Tampa
    MS-Off Ver
    2017
    Posts
    7

    Re: Send an email via macro with dynamic recipient address

    Nevermind, I was over complicating it and had a page break that was screwing it up.

    Thank you Maniacb for your help!

    For ref, below email body text i inserted the file path for the file I wanted to embed.

+ 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] Email Send Macro - 0 pulling into CC field when no email address present
    By toriwoo86 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-26-2021, 02:18 PM
  2. [SOLVED] Send an email with the recipient in the table
    By Raders in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2020, 11:26 AM
  3. Macro Code to Send Email if Cell Value is 'True', to recipient located in same row.
    By matt.whittaker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2018, 03:03 PM
  4. Macro that will send a separate email to each recipient in range
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2013, 02:17 PM
  5. Replies: 4
    Last Post: 02-29-2012, 08:14 PM
  6. Replies: 6
    Last Post: 12-02-2011, 02:14 PM
  7. VBA send email based on specified recipient
    By Ada01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2010, 07:14 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