asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Hello,
How can we change the below code function.
Istead time I need a timer...
Once userform pop ups timer will start.
Thanks
How can we change the below code function.
Istead time I need a timer...
Once userform pop ups timer will start.
Thanks
Code:
Option ExplicitDim Tempo As Date
Sub clock1()
Tempo = Now + TimeValue("00:00:01")
Application.OnTime Tempo, Procedure:="Lable_Text", Schedule:=True
End Sub
Sub Lable_Text()
list.Label148.Caption = Format(Now, "hh:mm:ss")
Call clock1
End Sub
Sub clock2()
On Error Resume Next
Application.OnTime Tempo, Procedure:="Lable_Text", Schedule:=False
End Sub
Sub userform_show()
list.Show
End Sub
Code:
Private Sub UserForm_Initialize()Application.Run "clock1"
End Sub