Application.AutoRecoverInterval property (Visio)
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. Read/write.
Syntax
expression.AutoRecoverInterval
expression A variable that represents an Application object.
Return value
Integer
Remarks
Must be an integer value from zero (0) to 120, representing the interval in minutes. The default is 0. 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 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기