I wrote this code to run a procedure every second using ontime function:
Sub startTimer()
Application.OnTime (Now + TimeValue("00:00:01")), "increment"
End Sub
Sub increment()
'some code here
startTimer
End Sub
The code works fine, but is there any way to increment by a fraction of a second (ex: 10 ms) ?