+ Reply to Thread
Results 1 to 2 of 2

Capturing changing data

  1. #1
    Registered User
    Join Date
    08-28-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    1

    Capturing changing data

    Hi,

    I am new to macros/ vba coding so bear with me if I dont understand certain terms.

    I am running a simulation in excel, assigning 1 = if an event happen, and 0 = if an event does not happen. Data is live and keeps changing. I would like to capture the data field and time stamp whenever "1" happens.

    I have found the below vba code in another forum and it works if i hard code the number in A1 (let A1 = 1 or 0). However, if I make A1 = sum (B1:C1), data does not display on sheet "Tracker".

    Is it possible to capture data from A1:C1 whenever A1 meets the trigger criteria?

    Please Login or Register  to view this content.
    Last edited by pike; 08-28-2011 at 04:34 AM. Reason: add code tags for newbie

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Capturing changing data

    the ws_calculate event will trigger every time anything on the sheet "recalculates". I don't know if this works for you or not as all it does is check the value of A1 and if it is 1, records the timestamp. Seems too simple, but it's a starting point.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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