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![]()
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![]()
Look at Ontime in VBA help, that will get you going.
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
Well a better place to look is here
Thank so you so much. Ok I understand the ontime procedure. The macro should you read like this
This stores the time to run the procedure in the variable RunWhen, two minutes after the current time.![]()
Please Login or Register to view this content.
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
and![]()
Please Login or Register to view this content.
You must ensure that RunWhen is a global variable in a standard code module![]()
Please Login or Register to view this content.
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
No, it was my error
and![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
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
Setup a separate OnTime with a separate time variable and a separate procedure.
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
Sorry, I don't understand what you are saying here.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks