Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top