+ Reply to Thread
Results 1 to 3 of 3

Multiple Emails to same recipient

  1. #1
    Registered User
    Join Date
    09-14-2015
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    2

    Multiple Emails to same recipient

    Hi,

    I wrote a VBA Code to send a mail to the recipient based on a criterion. My next step is a bit complex and I am not sure how to proceed.

    Problem:

    I have a criterion, passing which, a mail will be sent to a recipient. But there shall be several instances where the criterion is TRUE and more than one mail will be sent to the same person. In the actual application, a person could receive upto 10 mails with a slight modification in the email body. I would like to group the information to be written in the email body and send it to the recipient as one mail. Please have a look at the file here. Based on the code, the criterion is if the value in H:H is <= -2, the programmed Actions will be performed. Assuming that the criterion is TRUE and more than one set of detail have to be sent to the same Person (based on Email in E:E), I would like to send it as one mail.

    Ideas:

    inserting an additional criterion after the first set of FOR and IF Statement and the new criterion is to check if there are more than one instance of the email recipient. If the condition is TRUE, insert a FOR Statement to gather data from all the possible mails to be sent to each recipient.

    I am still learning VBA and not sure how to proceed with this idea. Any suggestions or sample Code is highly appreciated. Meanwhile, I will try to solve the query myself.

    Thank you!

    Regards,
    Bharath

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Multiple Emails to same recipient

    Hello Bharath,
    Could you please attache the excel where you using this code?
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    09-14-2015
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    2

    Re: Multiple Emails to same recipient

    Hi, sorry, I forgot to create the Hyperlink. You can find it with this link. (Forum restricted me from creating Hyperlink)

    //drive.google.com/file/d/1lrUL_Ng5szvjKiR5dDYpHqVHDckge7Uc/view?usp=sharing

    ("https:")

+ 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. Macro to create emails, attach files, add recipient and add subject line
    By dw_22801 in forum Outlook Programming / VBA / Macros
    Replies: 8
    Last Post: 05-08-2017, 05:11 PM
  2. Count emails sent per recipient
    By jpxexcelforum in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2016, 02:20 PM
  3. Recipient Multiple addresses
    By rafaelino in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2014, 07:19 AM
  4. Email multiple worksheets to multiple recipients in one file per recipient
    By LeanAccountant in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-03-2014, 09:44 AM
  5. [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
  6. Macro to email range of data for each recipient from multiple worksheets
    By Ram84 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2013, 04:03 PM

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