设置或返回 AutoRecover 对象的时间间隔。允许的值为从 1 到 120 分钟的整数。Long 类型,可读写。
expression.Wait(Time)
expression 必需。该表达式返回一个 AutoRecover 对象。
输入的小数值将舍入为最接近的整数。例如,输入的 5.5 与 6 等价。
无论何时在有效区域以外输入数值,Microsoft Excel 都将使用上一次使用的时间值。
下例将“自动恢复”的时间间隔设置为 5 分钟,并通知用户。
Sub SetTimeValue()
Application.AutoRecover.Time = 5
MsgBox "The AutoRecover time interval is set at " & _
Application.AutoRecover.Time & " minutes."
End Sub