Trust you but why :
-the only digit working is 1 ?
-The routine is used to make a shape moving in excel whith a pause, 1 sec is working (the shape does move) and 1/10sec have no action at all on the shape ?
Regards...
User Profile
Collapse
-
Back to the 1/10e sec issue, I did replace the line
Application.Wai t (Now + ("00:00:01") ) - works fine for 1sec
by
Application.Wai t (Now + 0.00001) - works fine for 1sec
then I tried
Application.Wai t (Now + 0.000001) - 1/10sec the macro does execute (no bugs) but no action at all 1/10sec perhaps to fast
then I tried any other digits eg.
Application.Wai t (Now...Leave a comment:
-
VBA pausing by tenths of seconds (or milliseconds)
I want to pause for a value < of 1 sec
this is my routine for 1 sec
Sub Macro1()
Range("C15").Se lect
ActiveCell.Form ulaR1C1 = "12"
Range("E26").Se lect
Application.Wai t (Now + TimeValue("0:00 :01"))
End Sub
I tried with "0:00:00:10 " arguments (to set the pause to 1/10 seconds)
Application.Wai t (Now...
No activity results to display
Show More
Leave a comment: