Computing.Net > Forums > Office Software > excel timer function

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

excel timer function

Reply to Message Icon

Name: Paul ILT
Date: February 19, 2003 at 03:39:44 Pacific
OS: xp
CPU/Ram: 1.8 256
Comment:

Hello

I am trying to use the timer function in excel without much sucess, what i want to do is put a button in the spreadsheet, when it is clicked a timer is then activated. Another button is then clicked to stop the timer then the time taken results are displayed in another cell.

Any help would be great, thamks
Paul



Sponsored Link
Ads by Google

Response Number 1
Name: A Certain TH
Date: February 25, 2003 at 13:30:19 Pacific
Reply:

Hi Paul

Best way I can think of doing this is to declare a public Date variable within the spreadsheet. When the first button is clicked, have some VBA assign the current system time to the variable. When the second button is clicked, have it compare the new current system time to the variable.

Two things to note:
1) You'll probably also want a boolean switch that tells the second button whether the first has actually been pressed
2) I sometimes have problems with the system time assignation to Date variables, and so if "to the nearest second" is good enough, I usually assign the seconds, minutes and hours out to integers

Hope that helps
Tom


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: excel timer function

Excel increasing slowdown, in multi www.computing.net/answers/office/excel-increasing-slowdown-in-multi/1975.html

excel rank function www.computing.net/answers/office/excel-rank-function/3431.html

Excel: Sort Function Help www.computing.net/answers/office/excel-sort-function-help/5113.html