ThrottleWorks
Excel Ninja
Hi,
I am trying to run a macro after every 10 seconds.
I am using following code to call the macro.
When I open the file, the macro will run for at the max 2 times.
It is supposed to run after every 10 seconds, this does not happen, do not know what my mistake is.
I have also attached a file for reference.
Can anyone help me in this please.
I am trying to run a macro after every 10 seconds.
I am using following code to call the macro.
Code:
Private Sub Workbook_Open()
TmToRn = Now + TimeValue("00:00:10")
Application.OnTime TmToRn, "Time_Calculator"
End Sub
When I open the file, the macro will run for at the max 2 times.
It is supposed to run after every 10 seconds, this does not happen, do not know what my mistake is.
I have also attached a file for reference.
Can anyone help me in this please.