문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top