返回一个 AutoRecover 对象,该对象在规定的时间间隔内对所有的文件格式进行备份。
expression.AutoRecover
expression 必需。该表达式返回“应用于”列表中的对象之一。
有效的时间间隔为从 1 到 120 的所有数值。
在本示例中,Time 属性与 AutoRecover 属性结合使用,可将 Microsoft Excel 在保存另一个副本之前的等待时间间隔设置为 5 分钟。
Sub UseAutoRecover()
Application.AutoRecover.Time = 5
MsgBox "The time that will elapse between each automatic " & _
"save has been set to " & _
Application.AutoRecover.Time & " minutes."
End Sub