+ Reply to Thread
Results 1 to 2 of 2

Worksheet Change Only Run Upon Actual New Data

  1. #1
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Worksheet Change Only Run Upon Actual New Data

    Good morning,

    I'm running this code to send me an email when a value in my linked database changes which is set to auto refresh every 5 minutes, however this code will run each time the data source is refreshed and no specifically when there is new data, it could be the same data but refreshed.

    Please Login or Register  to view this content.
    This is what i want to happen if possible;

    Example: At 10:00 my data source refreshes and I have an entry in B2 as Test 1 > Send Email
    At 10:05 my data source refreshes and I have an entry in B2 as Test 1 > Don't send as already sent
    At 10:10 my data source refreshes and I have an entry in B2 as Test 2 > Send Email

    Thanks in advance

    DJ

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,296

    Re: Worksheet Change Only Run Upon Actual New Data

    You need to have a storage area for values, say AB2:AC2, where you can compare the previous values to the current values. If they differ, send the mail and update the stored value, like

    Please Login or Register  to view this content.
    Also, the change event may not fire when the data source refreshes, but the calculate event will if you have other cells, say AB1:AC1, with links to the cells of interest:
    =B2
    and
    =C2
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 5
    Last Post: 02-01-2013, 12:58 PM
  2. [SOLVED] Change from formula to actual numerical value
    By colourxpalette in forum Excel General
    Replies: 4
    Last Post: 06-04-2012, 01:32 PM
  3. How do you change the legend from series to an actual value?
    By jackofalltrades in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-04-2012, 02:47 AM
  4. How do I change column headings from A,B,C to actual words?
    By LCMom01 in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 07:05 PM
  5. Change Number to Actual Text
    By dj.jimmi@gmail.com in forum Excel General
    Replies: 1
    Last Post: 01-18-2005, 05:06 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