Closed Thread
Results 1 to 16 of 16

Capture real time data/DDE capture

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Capture real time data/DDE capture

    Hi, i have streaming data coming from DDE.
    time format(ex: 9:42:24) in a1, and data in b1.
    time in a1 cell increments with every one second and data will change.
    sometimes time and data refresh within one second.

    whenever time changes in a1,i want capture a1,b1 cells and copy to c1,d1 and next c2,d2.. goes down vertically.
    can you write Vb code for this!
    Last edited by rajre; 09-04-2014 at 10:59 AM.

  2. #2
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    Hi Rajre,

    In the attached workbook, I have inserted a code in "Sheet1" wherein whenever you change a value in cell A1 it copies the valuesof cells A1 and B1 in columns C and D in consecutive blank rows.
    Attached Files Attached Files
    If this helped and you wish to say thanks, then Please click on the Star* icon below this post.

  3. #3
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    Hi Bhuvi thank you: ).real time data not coming now.. will check with this code in evening.
    regards
    rajre

  4. #4
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    Your are welcome , if this works for you then later on you can mark this thread as Solved from Thread tools.

    Also if this solution was helpful you can add to reputation by clicking star* button below the post.

    Thanks !!

  5. #5
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    hi, i have done these steps but data not capturing

    ----downloaded and opened workbook
    ----enabled macro

    ----selected sheet1 A1 cell and pasted DDE link time formula =prortdde|DAX!Time
    (after entering formula in A1....... C6 cell got #N/A and D6 cell got xyz)
    ----selected sheet1 B1 cell and pasted DDE link data formula =prortdde|DAX!Last

    now both A1 and B1 are changing for every second but data not capturing!
    Am I doing something wrong?
    Last edited by rajre; 09-04-2014 at 09:31 AM.

  6. #6
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    You can try this new attached sheet.

    As you have put a formula in cell A1 so this macro runs whenever this worksheet is calculated.
    The macro in previous sheet runs whenever the value in cell A1 is changed.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    opened and enabled above workbook and after entering the formula in A1....A1 cell got #N/A... instantly a small window came in worksheet like in attached image and i am unable to close that box to enter second formula in B1

    if i press 4 times "OK" in that box..A1 changing and 4 rows came in c,d columns like in this image
    capture.png
    Last edited by rajre; 09-04-2014 at 10:36 AM.

  8. #8
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    iam sorry,you dont have my DDE links..otherwise it is very simple task for you

  9. #9
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    sorry, I left the message box in the code, now it's removed.
    The values would copy from cells c2 and d2, please test and let me know.
    Attached Files Attached Files

  10. #10
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    sorry, I left the message box in the code, now it's removed.
    The values would copy from cells c2 and d2, please test and let me know.

  11. #11
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    attachment
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    now it is capturing but only A1 cell to both c,d columns
    not B1 cell to column d
    Image 4.png
    Last edited by rajre; 09-04-2014 at 10:47 AM.

  13. #13
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Capture real time data/DDE capture

    again a silly mistake again from my side
    corrected file attached
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-04-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Capture real time data/DDE capture

    Now it is working fine ..thanks for spending time for me
    thread marked as solved and added *button

    regards
    rajre

  15. #15
    Registered User
    Join Date
    01-07-2022
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Re: Capture real time data/DDE capture

    it is not working correct any hyperlinks for A1B1 cellls?

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,040

    Re: Capture real time data/DDE capture

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Capture time with click
    By Paulferreira in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-18-2014, 07:52 PM
  2. Need to capture point in time
    By toffasaffa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2013, 09:11 AM
  3. Trying to capture point in time data in new fields each day
    By labboypro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2010, 02:04 AM
  4. Capture Value at precise time
    By deano48 in forum Excel General
    Replies: 1
    Last Post: 07-08-2007, 06:39 PM
  5. [SOLVED] Time capture problem
    By Francois Ashton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2005, 11:05 AM

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