AutoRecoverInterval Property [Visio 2003 SDK Documentation]
Represents the time interval (in minutes) for how often you want to save copies of open documents that have unsaved changes in case of a power failure or an application error.
intRet = object**.AutoRecoverInterval**
object**.AutoRecoverInterval** = intExpression
intRet Integer. An integer value from zero (0) to 120 representing the interval in minutes. The default is 0.
object Required. An expression that returns an Application object.
intExpression Required Integer. An integer value from 0 to 120 representing the interval in minutes. The default is 0.
Version added
2000 SR-1
Remarks
If the value of the AutoRecoverInterval property is less than or equal to 0, no automatic recovery copies are created.
If the value of the AutoRecoverInterval property is greater than 0, automatic recovery is enabled for all documents in the Microsoft Office Visio instance. To disable automatic recovery for a particular document, set its AutoRecover property to False.
Example
The following Microsoft Visual Basic for Applications (VBA) macros show how to set the AutoRecoverInterval property and how to use it to disable automatic recovery.
Public Sub AutoRecoverInterval_Example()
'Save automatic recovery copies of unsaved files
'every 10 minutes.
Application.AutoRecoverInterval = 10
End Sub
Public Sub DisableAutoRecover_Example()
'Tell Visio not to save automatic recovery copies of unsaved files.
Application.AutoRecoverInterval = 0
End Sub
Applies to | Application object | InvisibleApp object
See Also | AutoRecover property