設了兩個 on/off 按鈕
Sub 按鈕_Click_on()
Toff_N = False
Ton_StartTime
End Sub
Sub 按鈕_Click_off()
Toff_N = True
End Sub
每間隔一秒抓取系統時間呈現
Sub Ton_StartTime()
Cells(3, 1) = Format(Time, "h:mm:ss")
If Toff_N = True Then End
dTime = Now + TimeValue("00:00:01")
Application.OnTime dTime, "Ton_StartTime"
End Sub