Hi,
I have a timer function that counts down, however I need to add a pause button and function.
Can anybody advise on the code to pause the count down.
the code for my timer is:-
Sub Makechange()
Dim PauseTime, Start
Do
PauseTime = 1 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Yield to other processes.
Loop
Sheet1.Range("E13").Value = Now()
Loop
End Sub
I have a timer function that counts down, however I need to add a pause button and function.
Can anybody advise on the code to pause the count down.
the code for my timer is:-
Sub Makechange()
Dim PauseTime, Start
Do
PauseTime = 1 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Yield to other processes.
Loop
Sheet1.Range("E13").Value = Now()
Loop
End Sub