Microsoft Office documents can be repaired by restoring a previous version of the file from within the Office application. The AutoSave feature can be configured to make copies of your working files in your selected timeframe.
To turn on Autosave, follow these steps:
Open the Word or Excel application.
Select File->Options->Save from the menu bar.
In the Save Documents panel, check Save AutoRecover information every X minutes.
Select the timeframe you desire and click OK.