|Excel Developer Reference|
expression A variable that represents a Workbook object.
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.
The following example checks the setting of the AutoRecover feature and if not enabled, Excel enables it and then notifies the user.
|Visual Basic for Applications|