Workbook..::.EnableAutoRecover Property
Gets or sets a value that indicates whether Microsoft Office Excel saves changed files, of all formats, on a timed interval.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
Property EnableAutoRecover As Boolean
bool EnableAutoRecover { get; set; }
Property Value
Type: System..::.Boolean
true if Excel saves changed files on a timed interval; otherwise, false.
Remarks
If 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.