Ready 属性

       

当 Microsoft Excel 应用程序就绪时,返回 True ,当 Microsoft Excel 未就绪时,返回 FalseBoolean 类型,只读。

expression.Ready

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

在本示例中,Microsoft Excel 检查 Ready 属性是否设置为 True,如果是,就显示“应用程序就绪”的消息。否则,Excel 显示“应用程序未就绪”的消息。

Sub UseReady()

    If Application.Ready = True Then
        MsgBox "Application is ready."
    Else
        MsgBox "Application is not ready."
    End If

End Sub