VB and VBA Users Source Code: Make the current process pause/sleep for a specified time period
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Make the current process pause/sleep for a specified time period
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Saturday, October 28, 2000
Hits:
840
Category:
Windows API
Article:
To send the current thread to sleep use the following code: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 'Purpose : Sends the current thread to sleep for the specified time period 'Inputs : N/A 'Outputs : N/A 'Author : Andrew Baker 'Date : 28/10/2000 08:17 'Notes : 'Revisions : Sub Pause(lPauseTime As Long) Sleep lPauseTime End Sub
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder