thanks again
here is my final working code
Sub startTimer()
Application.OnTime Now + TimeValue("00:00:01"), "increment_count"
End Sub
Sub increment_count()
With Range("H12")
.Value = .Value - 1
If .Value = 0 Then
Range("H12").Value = 0
MsgBox "Time´s up! How Did You Do This Time?"
UserForm1.Show
Else
startTimer
End If
End With
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:01"), "increment_count", schedule:=False
Range("H12").Value = 65
End Sub
and here is my code for start and stop buttons which disable when in use
Private Sub Stop_End_Click()
StopTimer
STOP_END.Enabled = False
CONTINUE.Enabled = True
End Sub
Private Sub CONTINUE_Click()
Range("H12").Value = "65"
startTimer
STOP_END.Enabled = True
CONTINUE.Enabled = False
End Sub
you are a star *****
Bookmarks