Share via


_Application.Wait Method

Pauses a running macro until a specified time. Returns True if the specified time has arrived.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Wait ( _
    Time As Object _
) As Boolean
'Usage
Dim instance As _Application
Dim Time As Object
Dim returnValue As Boolean

returnValue = instance.Wait(Time)
bool Wait(
    Object Time
)

Parameters

  • Time
    Type: System.Object

    Required Object. The time at which you want the macro to resume in Microsoft Excel date format.

Return Value

Type: System.Boolean

Remarks

Important

The Wait method suspends all Microsoft Excel activity and may prevent you from performing other operations on your computer while Wait is in effect. However, background processes such as printing and recalculation continue.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace