Microsoft KB Archive/289273

= Description of the AutoRecover functions in Excel =

Article ID: 289273

Article Last Modified on 5/29/2007

-

APPLIES TO


 * Microsoft Office Excel 2007
 * Microsoft Office Excel 2003
 * Microsoft Excel 2002 Standard Edition

-



This article was previously published under Q289273



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
Microsoft Excel now has a built-in AutoRecover feature that has replaced the AutoSave add-in that exists in versions of Excel that are earlier than Microsoft Excel 2002. The AutoRecover feature saves copies of all open Excel files at a user-definable fixed interval. The files can be recovered if Excel closes unexpectedly, for example, during a power failure.

This article contains an overview of the AutoRecover feature.



Microsoft Office Excel 2007
The controls to configure the AutoRecover feature are in the Save settings in Excel Options.

Note To open the Save settings, click the Microsoft Office Button, click Excel Options, and then click Save.

To configure the AutoRecover settings, follow these steps:  Under Save Workbooks, click to select the Save AutoRecover info every check box to turn on the AutoRecover feature. In the minutes box, you can type any integer from 1 through 120. This box sets the number of minutes that will occur between saves.

The default is 10 minutes. In the AutoRecover file location box, you can type the path and the folder name of the location in which you want the AutoRecover files to stay.

The default location is as follows:



Notes  If the location that you type is local (on your hard drive) or is on a network drive, and if this location does not exist, you receive the following error message:

Cannot access directory.

To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The following number appears in the lower-right corner of this message:

100100

 If you click to clear the AutoRecover file location box but do not enter a new location, AutoRecover files will continue to be saved to the location that you cleared. This will occur until you type a new location.

The AutoRecover file location box remains empty until you type a new location. </li> You can turn off the AutoRecover feature in an individual workbook. To do this, click to select the Disable AutoRecover for this workbook only check box under the AutoRecover exceptions for box. Make sure that the workbook name is selected in the AutoRecover exceptions for box.</li></ol>

Microsoft Office Excel 2003 and earlier versions of Excel
The controls to configure the AutoRecover dialog box are on the Save tab of the Options dialog box.

Note To open the Options dialog box, click Options on the Tools menu.

To configure the AutoRecover dialog box, follow these steps: <ol> Under Settings, click to select the Save AutoRecover info every check box to turn on the AutoRecover feature.</li> In the minutes box, you can type any integer from 1 through 120. This box sets the number of minutes that will occur between saves.

The default is 10 minutes.</li> In the AutoRecover file location box, you can type the path and the folder name of the location in which you want the AutoRecover files to stay.

The default location is as follows:



Notes  If the location that you type is local (on your hard drive) and if the location does not exist, you receive the following error message:

Cannot access directory.

</li> If the location that you type is on a network drive, you will not receive an alert until your first AutoRecover attempt. You receive the following error message:

Microsoft cannot save AutoRecover info to. Please check the network connection or change the location on the Save tab of the Tools, Options dialog.

</li> If you clear the AutoRecover file location box but do not enter a new location, AutoRecover files will continue to be saved to the location that you cleared. This occurs until you type a new location.

The AutoRecover file location box remains empty until you type a new location.</li></ul> </li> You can turn off the AutoRecover feature in an individual workbook. To do this, click to select the Disable AutoRecover check box under Workbook options.</li></ol>

When an AutoRecover event is triggered
When an Excel file is open and AutoRecover is turned on, AutoRecover does not save the file until the first change is made to the file, the AutoRecover save time interval passes, and Excel has been idle for some time (the default is 30 seconds). After AutoRecover saves the file, the file is only saved at subsequent save intervals if further changes are made.

When AutoRecover files are deleted
To keep from filling up your AutoRecover location with unneeded files, AutoRecover files are automatically deleted in the following situations:
 * When the file is manually saved.
 * The file is saved with a new file name using Save As.
 * You close the file.
 * You quit Excel, whether you choose to save the file or not.
 * You turn off AutoRecover for the current workbook.
 * You turn off AutoRecover by clearing the Save AutoRecover info every check box.

AutoRecover save timing
The AutoRecover timer checks for changed Excel files at the interval you set in the minutes box on the Save tab in the Options dialog box. The timer starts when you start Excel.

Note In Excel 2007, the minutes box is in the Save category in the Excel Option dialog box.

When the first save interval passes, Excel checks to see whether any open files have been changed. If Excel locates changed files, an idle timer starts. The purpose of the idle timer is to make sure that the user does not make entries in the worksheet while the save operation occurs. The idle timer restarts each time that the user makes an entry into the worksheet so the AutoRecover save file is not created until both the save interval passes and no entries are made for the duration of the idle time.

The default idle time is 30 seconds. To change the default idle time, use the AutoRecoverDelay registry key. To do this, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. <ol> Quit Excel if it is running.</li> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then select one of the following registry keys, as appropriate for the version of Excel that you are running.

For Microsoft Excel 2002:

 

For Excel 2003:

 

For Excel 2007:

 

</li> On the Edit menu, click New, and then click DWORD value.</li> Type the following name for the new value:

AutoRecoverDelay

</li> Press ENTER.</li> Right-click the AutoRecoverDelay registry key, and then click Modify.</li> <li>In the Value data box, type a number between 1 and 600. This is the number of seconds before AutoRecover tries to save.</li> <li>When you are finished, click OK.</li> <li>Quit Registry Editor.</li></ol>

Note Only manually performed actions in the program affect the idle timer. Formulas that automatically update the file do not affect the idle timer. Excel saves the file when the idle time is reached, between the automatic updates to the formulas.

File formats that are saved by AutoRecover
AutoRecover saves all file formats that can be opened in Excel. To maintain speed and simplicity, AutoRecover saves all files as the current Excel file format, regardless of the original file format opened. The file is saved as a hidden file with an arbitrary filename with the extension .xar (for example, ~ar18a.xar).

When you try to save a recovered file upon reopening Excel after it closed unexpectedly, the original file format and name is suggested as the Save file type. Excel stores the original file name and its related .xar file name in the registry for the purpose of recovery.

AutoRecover and multiple instances of Excel
When more than one instance of Excel is running and one instance closes unexpectedly, a new instance of Excel is automatically started and the AutoRecover files are opened. If all instances of Excel close unexpectedly, but the computer is still running, a single instance of Excel is started and all AutoRecover files are opened. In the case of a power outage, all recovered files are opened when you start Excel again.

Compatibility
All AutoRecover settings, except the Disable AutoRecover workbook option, are stored in the system registry. AutoRecover settings are compatible with files from previous versions of Excel is not an issue.

When the Disable AutoRecover workbook option is set, and the file is opened in an earlier version of Excel, saved, and then reopened in a later version of Excel, the Disable AutoRecover workbook option is not affected.

<div class="references_section">