The information in this article applies to:
SUMMARY
You can delay execution of your code for a specific time interval by using
the Timer function.
To use the Timer function to pause for a number of seconds, store the value of Timer in a variable. Then use a loop to wait until the Timer returns a a specified number of seconds greater than the stored value. If the delay loop will execute when midnight passes, compensate by reducing the starting Timer value by the number of seconds in a day (24 hours * 60 minutes * 60 seconds). Calling DoEvents from within the loop allows events to be processed during the delay. MORE INFORMATIONCode Example
Additional query words: B_VBasic B_VBMSDOS 1.00 2.00 3.00 wait
Keywords : |
Last Reviewed: May 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |