+ Reply to Thread
Results 1 to 4 of 4

Create Macro - VBA to send mutiple emails based on a criteria

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    cleveland ohio
    MS-Off Ver
    Excel 2007
    Posts
    4

    Create Macro - VBA to send mutiple emails based on a criteria

    This is my first post on this Forum. I heard great things about this forum. I hope I get this right.
    Attached is an example of a spreadsheet that I would use. I would like to create a control button that sends an email from Outlook to specified recipients based on the criteria below:
    When the date in column G (Calibration Due) equals one week before the current date an email would be sent to the Leader from Column E.
    I need all of the information from that specific row in the email. The subject in the email should state: Calibration plus the contents of column A (tool ID).

    Would it be easier if I added a column with each individual?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Create Macro - VBA to send mutiple emails based on a criteria

    Hi hervaz

    Welcome to the Forum!

    Please add a worksheet to your uploaded file that includes two columns:
    • Column A Leader
    • Column B EmailAddr
    Place bogus Email Addresses for each of your leaders.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    cleveland ohio
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Create Macro - VBA to send mutiple emails based on a criteria

    Hi John, Thanks for the response. I added the two columns per your request. Attached is the updated spreadsheet.Cal Code TestRev2.xls

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Create Macro - VBA to send mutiple emails based on a criteria

    Hi hervaz

    Try the code in the attached. It appears to do as you require...let me know of issues.
    Attached Files Attached Files
    Last edited by jaslake; 08-28-2012 at 02:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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