Util.WaitFor() Method

Sleeps the program for the interval given by an ActiveX Date value (typically a fraction of a day).

Syntax

Util.WaitFor(TimeVal)

The method syntax has these parts:

Part Description
TimeVal (Date) the length of time to sleep
Return (Nothing) Does not return a value.

Remarks

Use this whenever you need to delay execution for a specific interval of time. Will raise an error if the script is aborted during the wait interval.

Loops, first putting the calling Win32 process to sleep, totally freezing it for 100 milliseconds, then pumps events so the script or program calling it will receive its normal flow of events.