A Real AutoSave

Written by Allen Wyatt (last updated March 14, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


1

Word has a built-in AutoSave feature that offers a limited amount of protection for the documents on which you are working. If you have AutoSave turned on, Word periodically (you can define how often) saves a copy of the document on which you are working. These periodic saves are stored in special backup files that Word maintains; it does not store them in the same document as the one on which you are working.

For instance, let's say you are working on a document named Report.doc, and that you have AutoSave enabled and set for every ten minutes. When the ten-minute mark is reached, Word stores the document in a temporary file, not back in Report.doc. The only time that this happens is when you explicitly save the file. Then Report.doc is saved and the temporary file is deleted. When you first start Word, it checks to see if any of these temporary files are on your system. If they are, then it "recovers" those files and gives you the chance to save them, if you desire.

There may be times when you want a real AutoSave instead of one that uses temporary files. For instance, you might want Report.doc saved every ten minutes—automatically. To do this, you need to create your own macros that take care of it for you. The following series of three simple macros will accomplish the task:

Sub AutoOpen()
    WordSaver
End Sub
Sub WordSaver()
    Application.OnTime When:=Now + _
      TimeValue("00:10:00"), _
      Name:="Saver"
End Sub
Sub Saver()
    ActiveDocument.Save
    WordSaver
End Sub

If you save these macros with a document, then they will always provide an AutoSave for that document. The AutoOpen macro is run when the document is first opened, and it runs WordSaver. WordSaver does nothing but run the Saver macro after ten minutes has elapsed. When Saver runs, it saves the active document, and then runs WordSaver again, which starts the ten-minute cycle all over.

There are a couple of drawbacks to these macros. First of all, there is no way to undo what is saved. With the regular Word AutoSave, you can always close a document without saving any modifications. The second drawback is that these macros will save whichever document is currently active—including one you might not have intended to save. Finally, if you save these macros as part of a template, then when you open a document using that template, ten minutes later a Save As dialog box will appear since your new document is not yet named.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (157) applies to Microsoft Word 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Inserting Multiple Drawing Objects

If you need to add more than one particular drawing object to your document, you can do it most easily by "tearing off" ...

Discover More

Using a Single Instance of Excel with Two Monitors

Working on a computer system that has multiple monitors can help increase your productivity. If you want to work with ...

Discover More

Finding the First Non-Digit in a Text Value

If you have a string of text that is composed of digits and non-digits, you may want to know where the digits stop and ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (menu)

Dates Updating when Converting

Word allows you to convert documents from WordPerfect format to Word. In doing so, you may notice that some dates in the ...

Discover More

Saving Information in a Non-Document Text File

Need to store some information in a plain text file? It's easy to do when you use a macro.

Discover More

Open Documents Suddenly Become Read-Only

If a Word document is marked as "read only," that means that you cannot save updates to the document; they must be saved ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is eight less than 8?

2020-07-01 12:27:23

Gavin Schmidt

An even better version:


' begin macro document:
Dim myDoc As String ' Global variable to store opened document name

Sub AutoOpen()
myDoc = ActiveDocument.Name 'Store the opened documents name, when opened
WordSaver
End Sub

Sub WordSaver()
Application.OnTime When:=Now + _
TimeValue("00:02:00"), _
Name:="Saver"
End Sub

Sub Saver()
'
' Saver Macro
'
'
Documents(myDoc).Save 'Save only the document including the macro, not the active document
WordSaver
End Sub


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.