I wan't to start a countdown when the Race turn in play
it should take 20 sek then I want to start betting. I have one which
work but not accurate. Now I set the Time to 8 minutes and it needs only 20 sek

sometimes the countdown run down when the Race is not in Play I want that the time
stay at 20sek when the Race is not in play and it needs 20sek when I say 20sek
Hope somebody can help me.

Think the Problem is the Worksheet Calculate which is here:
Private Sub Worksheet_Calculate()
Static Status As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [E2].Value = "In Play" Then
GoTo Xit
Else
Status = [E2].Value
datTime = TimeSerial(12, 8, 0)
bolTimer = True
Call Countdown
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
here is the modul but I think this is ok (':arrow:')
Option Explicit
Option Private Module
Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public datTime As Date, bolTimer As Boolean
Public Sub Countdown()
If bolTimer Then
datTime = datTime - TimeSerial(0, 0, 1)
With Worksheets("Tabelle1").Cells(2, 23)
.NumberFormat = "m:ss"
.Value = datTime
If datTime > CDate("12:00:01") Then
Application.OnTime Time + TimeSerial(0, 0, 1), "Countdown"
Cells(2, 21) = ""
Else
Cells(2, 21) = "OK"
End If
End With
End If
End Sub
Any help appreciated
Andy