Share via


_Workbook.EnableAutoRecover Property

Saves changed files, of all formats, on a timed interval. Read/write Boolean.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property EnableAutoRecover As Boolean
    Get
    Set
'Usage
Dim instance As _Workbook
Dim value As Boolean

value = instance.EnableAutoRecover

instance.EnableAutoRecover = value
bool EnableAutoRecover { get; set; }

Property Value

Type: System.Boolean

Remarks

If Microsoft Excel fails, the system fails, or if the system is improperly shut down (not allowing Excel to save the changed files), the backed up files are opened and the user has an opportunity to save changes that otherwise would have been lost. When the user restarts Excel, a document recovery window opens, giving the user an option to recover the files they were working on. Setting this property to True (default) enables this feature.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace