Private Declare Function SetTimer Lib "User32" (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Private Declare Function KillTimer Lib "User32" (ByVal hWnd As Long, ByVal nIDEvent As Long) As Long
Option Explicit
Dim TimerID As Long
Private Sub Chrono()
Dim T As Double
T = TimeValue(UserForm3.LblTemps.Caption) - TimeSerial(0, 0, 1)
UserForm3.LblTemps.Caption = Format(T, "hh:mm:ss")
If T = 0 Then TimerOff
'///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
'As an alternative you could try making a call to a separate Sub with the sound command/s, instead of placing the code here.
If UserForm3.LblTemps.Caption = "00:59:55" Then '<--- set the time for sound here
Beep '<-- place your command here for sound
End If
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
End Sub
Sub TimerOff()
KillTimer 0, TimerID
End Sub
Sub TimerOn(Interval As Long)
TimerID = SetTimer(0, 0, Interval, AddressOf Chrono)
End Sub