|
||||
|
|
Sleep Seconds By Richard Rost This procedure will determine how long Alex naps for. Code
Here's a version with a visible countdown timer (requires StatusBox)
Member VersionThere is a more elaborate Members' Only version that's covered in the Extended Cut of the Sleep Countdown TechHelp video. You can find the code here. UsagePut the above in a global module, then anywhere in your database you can say something like this to sleep for 5 seconds:
The purpose of the loop is to make SleepSec responsive. If you sleep for 10 seconds without any DoEvents, then your code might appear to freeze. If this interferes with performance or function for you, just set it to FALSE. VideoThis code is explained in my Sleep TechHelp video.
|
||||||||||||||||||
|
| |||
| Keywords: code vault generic vba sleepsec sleep seconds PermaLink Sleep Seconds |