+ Reply to Thread
Results 1 to 13 of 13

copy a cell value every hour in a specific cell

  1. #1
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10

    copy a cell value every hour in a specific cell

    Hi,

    I got an application where a cell value is being updated every 3-4 seconds. I wish to do a report and copy this cell value every hour in a specific cell.
    Many thanks for any help.

    Bob

  2. #2
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Look at Ontime in VBA help, that will get you going.

  3. #3
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Thank you for your prompt reply. Could you give me a link where I could find the VBA help Ontime. I have only a dial-up connection and it`s a battle to search on the site.

    Thanks.

    Bob

  4. #4
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Well a better place to look is here

  5. #5
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Thank so you so much. Ok I understand the ontime procedure. The macro should you read like this

    Please Login or Register  to view this content.
    This stores the time to run the procedure in the variable RunWhen, two minutes after the current time.

    The procedure that will be called by OnTime,

    Please Login or Register  to view this content.

    My question is :

    I want to copy the content of cell A1 to cell A2 , I am writing the copy function as code, but I`m getting error each time. Your help would be greatly appreciated.
    Note: I`m learning VBA now.

    Bob
    Last edited by VBA Noob; 10-15-2008 at 02:29 AM. Reason: Added code tags as per forum rules

  6. #6
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    You must ensure that RunWhen is a global variable in a standard code module

  7. #7
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Hi,

    I believe I`m doing something wrong. I got the message `The_Sub,Schedule:=Time' cannot be found when I run the startTimer.
    Thanks again for your time.
    Bob

  8. #8
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    No, it was my error

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Wonderful. Thank you so much xld. Ok the code is copying cell A2 to cell A1 after 4 seconds. Now, I wish to modify the code so that it copies the content of cell A2 onto cell A3 ONLY afterr 8 seconds.
    Thank again for your kind contribution.

    Bob

  10. #10
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Setup a separate OnTime with a separate time variable and a separate procedure.

  11. #11
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Thanks xld. However, I still have a problem. I don`t wish that the value copied to the cell changed when the original cell, A2, is changing. The A2 cell value is being updated all the times.
    Thanks again for your help.

    Bob

  12. #12
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Sorry, I don't understand what you are saying here.

  13. #13
    Registered User
    Join Date
    10-14-2008
    Location
    Brita
    Posts
    10
    Ok, Let me explain. The value in cell A2 is being updated all the times. I want to copy its current value at time x onto cell A3, then after time y its current value onto cell A4 and so on.
    Thanks.

    Bob

+ 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: 3
    Last Post: 06-10-2008, 09:20 AM
  2. Macro to Copy value in a given destination cell
    By urtzi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2008, 12:08 PM
  3. copying cell values to specific area in sheet
    By Reinder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2007, 09:55 AM
  4. read cell content and use with Hyperlinks.Add Cell
    By apoc [t.i.m.] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2007, 10:02 AM
  5. Automatically inputing data into cell at specific times
    By drumjunky in forum Excel General
    Replies: 1
    Last Post: 01-01-2007, 05:16 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