Professional Documents
Culture Documents
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Timer")
sh.Range("Q1").Value = "Start"
End If
x:
VBA.DoEvents
GoTo x
End Sub
Sub Stop_timer()
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Timer")
sh.Range("Q1").Value = "Stop"
End Sub
Sub Reset_timer()
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Timer")
sh.Range("Q1").Value = "Stop"
sh.Range("Q2:Q3").ClearContents
End Sub
stop watch
a = True
Do While a
Wait = 1
Start = Timer
Wend
Loop
End Sub
a = False
End Sub