Hi All,
I need a vba code to show running digital system time on my Userform. Below is my code which is just showing time and not changing any seconds incremental.
Please help:
-----------------------
Sub show_clock()
UserForm1.Label14.Caption = Time
Application.OnTime Now + TimeValue("00:00:01"), procedure:="show_clock"
End Sub
Private Sub UserForm_Initialize()
Call show_clock
UserForm1.Repaint
End Sub
Thanks & Regards,
Mahantesh
I need a vba code to show running digital system time on my Userform. Below is my code which is just showing time and not changing any seconds incremental.
Please help:
-----------------------
Sub show_clock()
UserForm1.Label14.Caption = Time
Application.OnTime Now + TimeValue("00:00:01"), procedure:="show_clock"
End Sub
Private Sub UserForm_Initialize()
Call show_clock
UserForm1.Repaint
End Sub
Thanks & Regards,
Mahantesh