+ Reply to Thread
Results 1 to 2 of 2

BULK email send: Adding "sent" check and select criteria?

  1. #1
    Registered User
    Join Date
    08-28-2019
    Location
    Missouri, USA
    MS-Off Ver
    2016
    Posts
    7

    BULK email send: Adding "sent" check and select criteria?

    Please forgive my excel/VBA ignorance. I found a code snippet online that I miraculously was able to adapt and test (it works!) to send emails in-bulk/batch. However I need 3 things added to the code that I haven't figured out...

    Overview: What this VBA does is send emails to a fixed email address, only the subject and body change based on what is in the spreadsheet. (emails a ticketing system that routes based on ticket number in the subject.) I linked the macro to a button for 1-click goodness. However...

    Here are the 3 things I am trying to add:

    1.) Add a confirmation "are you sure you want to send emails?" once button/macro is clicked.
    2.) Only send emails to records with "x" in designated column. We manually mark records that need an email send with an "x", so wanting to send emails only to those. Right now code sends to ALL in spreadsheet.
    3.) Have the code add an "x" to another(different) column to signify that an email has been sent to that record. Code will not send to that record again unless "x" is cleared.

    Here is pic a basic test worksheet of what I'm doing...
    BULK.jpg

    VBA:
    Please Login or Register  to view this content.
    Worksheet is attached!

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2024
    Posts
    983

    Re: BULK email send: Adding "sent" check and select criteria?

    Hi coolkev99,

    Please try attached file with the updated VBA script.

    - You will get a pop-up message to confirm you want to go ahead or cancel.
    - Only lines with an x in column C and blank/empty in column D will be processed.
    - Once emails are processed, 'eMail sent' will be in column D (change test as required). This will need to be cleared to send again (see above).
    - A confirmation pop-up message will let you know once the task is completed.

    NOTE: For testing I have changed the .Send with .Display so emails open up on the screen. Once you are happy all works as required, change it back to .Send

    Trust this helps.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

+ 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. Send Email when I press "Send" button in Outlook
    By qzqzjcjp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2015, 09:37 AM
  2. Disabling or interrupting "send email attachment" in excel 2010
    By andrewgarcia86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 02:14 PM
  3. How to create a "send email" event once a field is modified?
    By DatacomGuy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2013, 11:56 PM
  4. Macro "send to email" for specific spreadsheet section
    By thomasp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2013, 08:41 AM
  5. Adding commas "," in email addresses for sending BULK Email stored cellwise..!
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2011, 09:50 AM
  6. Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  7. Replies: 2
    Last Post: 07-11-2005, 12:05 PM

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