Pregunta

I currently have a macro that has a built in timer that i have coded, and after a set interval it calls a subroutine "increment_count". increment count is a subroutine that just counts up. I was wondering, is it possible for me to use milliseconds? i have tried adding another colon and then milliseconds but it did not seem to work, why? Please help

Sub StartTimer()
    Application.OnTime Now + TimeValue("00:00:30"), "increment_count"  

End Sub

Thank You

¿Fue útil?

Solución

Application.OnTime Now + (TimeValue("00:00:01") / 1000), "increment_count"

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top