countdown timer

Yorkie

Board Regular
Joined
May 6, 2003
Messages
138
Hi, just looking for a specific countdown timer. Here is the jist of it.

When a userform commandbutton (punchin) is clicked it automatically starts a countdown (time to be adjusted when needed e.g. 5 mins). If the user does not click another userform commandbutton (punchout) then the speech or .wav file will start to warn user that they have not clicked the command button (hopefully repeated after 2 mins - not that important if it complictes things).

If they have clicked the command button in time then the coundown timer stops.

I was using this as part of a code.

Sub sheet_calc()
dt = 1 / 24 / 60 / 60
t = Range("d27").Value
If t > -dt Then
Application.OnTime Now + TimeValue("00:00:01"), "sheet_calc"
If t < dt Then Application.Speech.Speak "Warning. warning. warning. warning. warning"

ActiveSheet.Calculate
End If
End Sub

Any pointers?

Thanks, Yorkie
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,191,076
Messages
5,984,497
Members
439,893
Latest member
johnsboxftm

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
Top