Condividi tramite


WorkbookBase.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
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property EnableAutoRecover As Boolean
public 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

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace