Util.WaitUntil() Method

Sleeps the program until a date/time given by an ActiveX Date.

Syntax

Util.WaitUntil(DateVal)

The method syntax has these parts:

Part Description
DateVal (Date) local date/time at which the script will resume
Return (Nothing) Does not return a value.

Remarks

Use this whenever you need to delay execution until a particular date/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.