+ Reply to Thread
Results 1 to 2 of 2

Record Changing cell value in excel .

  1. #1
    Registered User
    Join Date
    10-24-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Record Changing cell value in excel .

    I have a excel DDE worksheet and the cell value changes every second (its actually a stock price). Let that cell be A1, I wanted to record the value of the cell at say 09:15:00 AM (accurate to secs) in an other cell say B1. I am currently using excel 2016. What VBA code should I type or what changes should I make to my excel sheet to get the result??
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Record Changing cell value in excel .

    Hi, this is not an area of expertise on my part but in an effort to get your post moving...

    Fundamentally I think the main question here is: are you trying to capture the change itself, or simply the value in a cell at a given point in time?

    if just the latter then you might look at the OnTime method... if the former then it's more complicated...

    As I recall ... in terms of capturing a DDE change:

    DDE updates will not invoke the Worksheet Change event
    DDE updates will invoke the Worksheet Calculate event however, that event could trigger for a multitude of other reasons aside DDE

    So, in terms of how best to capture the change...

    Some people refer to the SetLinkOnData method, e.g:

    https://www.oreilly.com/library/view...663/re358.html

    Alternatively, a great poster here from yesteryear, Colin Legg, suggested assigning an ActiveX TextBox to the cell being updated, and using the Change Event on the TextBox.

+ 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. Record Changing Values In A Cell
    By watermasa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2019, 07:32 AM
  2. Record a changing cell value at the end of each month
    By Samboco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2019, 07:04 AM
  3. Automatically Record Changing Cell Value ion Separate Sheet
    By Itsfurreal in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-06-2017, 02:37 PM
  4. [SOLVED] automatically record data from a changing cell
    By rhaxx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2015, 08:40 AM
  5. Automatically Changing a cell value and Record another cell value
    By edwin.wong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2014, 07:39 PM
  6. How to record a changing cell
    By simmo86 in forum Excel General
    Replies: 2
    Last Post: 02-29-2012, 05:22 PM
  7. [SOLVED] how do i record changing cell data (cell is dde linked)
    By Morph in forum Excel General
    Replies: 1
    Last Post: 09-21-2005, 08:05 PM

Tags for this Thread

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