+ Reply to Thread
Results 1 to 2 of 2

Automated Email at Specific Value Reached Doing My Head In!

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2007
    Posts
    25

    Automated Email at Specific Value Reached Doing My Head In!

    Hi There,

    I am somewhat frustrated with VBA code that does what it is meant to do, but with a caveat.

    What I want to happen is an email to automatically be sent when a specific value is reached within the range M3:M20. The specific value is 4 (see truncated screenshot).

    Untitled.jpg

    I am using the following code:

    Please Login or Register  to view this content.
    Now the thing is, any movement on the worksheet generates an email to display, so I need to stop it from doing that, and I need the macro to display the email once for each time the number 4 appears in the range M3:M14. At the moment it generates multiple emails for each occasion 4 has been reached within the range. I need it to generate the email once only for each 4 reached and not repeat it when another 4 is reached further down the range. I think I need a line of code so that it does not treat past occasions for when four was reached as if they were new instances.

    If M3 is 4, then it would generate an email, if M4 does not reach 4, no email is sent, but if M5 is 4 then an email is sent, but not an email for M3 (even though the value remains 4). I want singular emails to be sent once only for each occasion the value 4 is reached, but earlier occasions are ignored.

    Can anyone help?

    Best regards
    Last edited by Aristillus; 01-27-2019 at 07:53 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Automated Email at Specific Value Reached Doing My Head In!

    Please edit your post and add code tags.

    -
    AA Add Code Tags.png

+ 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. Replies: 0
    Last Post: 05-28-2018, 09:53 AM
  2. How to send Automated Email when specific cell value reached due date
    By grlinks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2016, 12:22 AM
  3. [SOLVED] Move specific cells to a new sheet when a date is reached or 30 days from being reached
    By Albert Dirk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-26-2016, 04:44 AM
  4. Outlook email sent when date is reached
    By Dubby20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 10:19 AM
  5. Automated Email Notification on Specific Date
    By plam99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2012, 03:05 PM
  6. email when expired value is reached and email data to specific person
    By SAM1979 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-23-2011, 09:03 PM
  7. Scratching head.. email mail Function
    By tssgw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2008, 03:21 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