Saving MS Word Templates

I recently wanted to have a Word template that I could use without being asked to save changes to the template when I exited Word. Here's what I did:

Removed the Read Only attribute from the file.
Started Word 2000.
Opened the template (.dot) file in Word.
Pressed Alt-F11 to open the Visual Basic Editor.
Pressed Ctrl-R to display the Project Explorer.
Double-clicked ThisDocument in the Project Explorer.
Entered the code below.

Code:
Private Sub Document_Close()
    ActiveDocument.Saved = True
End Sub

Pressed Ctrl-S to save the file.
Exited Word.
Set the Read Only attribute on the file.

Now, when I open the template in Word, and use it to complete a document, attempting to save the finished document always presents the Save As dialog, the template file does not get overwritten, and when I exit Word, it does not offer to save changes to the template.

This worked for me, but you may find a better solution.
 
Thanks.

I have tried this on my home laptop, and it works fine.

I remote desktoped into a work machine, and it does not work there for some reason.

I have tried everything!
 
Back
Top