Countdown Timer in userform

mangoskogen

New Member
Joined
Apr 1, 2011
Messages
1
Hi

I'm working on kind of a sheet for registering statistics. What i have is the different sheets, and the userform i use to enter the stats. In my userform there's a bunch of buttons, that adds values to different cells when pushed.

What i need/want, is to be able to have some kind of countdown timer, counting down in minutes, seconds, and tenths(/hundreds) in the same userform. Mainly counting down from 10minutes. When i push the buttons for registering statistics, i want it to also register the time left, or time passed(not the time of day, so time/date/Now isn't good enough).

I'm certainly not a master of excel, or vba. I have been scouring google for something i can use, and have found lots of things that i can almost use, but that i can't get to work just the way I want:(

Is there anyone in here that is able to help?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
To achieve a resolution of less than 1 second, you'll need to use a Windows timer - see http://www.cpearson.com/excel/OnTime.aspx.

Call GetTickCount to get the start 'tick' milliseconds and compute the future end 'tick' milliseconds based on your required 10 minutes countdown, and from this you can compute the elapsed time and time left every time the timer fires or when you want a timestamp.
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top