JAMIR
Member
Hi,
I have module in my wrkbook for running system time. The code as follows.
But for Starting the Clock I have create Button for it. I just want to run the clock when open my workbook. How it will be work?
Regards,
Zameer
I have module in my wrkbook for running system time. The code as follows.
Code:
Global clockOn As Boolean
Sub runClock()
Range("GatePass!L5").Value = Now()
If clockOn = True Then
Application.OnTime Now + TimeValue("00:00:01"), "runClock"
End If
End Sub
Sub startClock()
clockOn = True
runClock
End Sub
Sub stopClock()
clockOn = False
End Sub
But for Starting the Clock I have create Button for it. I just want to run the clock when open my workbook. How it will be work?
Regards,
Zameer
Last edited by a moderator: