Stop Asking to save changes to a template .dot

B

Bob Day

Using Word 2003 all latest upgrades ...

When I save a document based on a templete I have created, it get a second
message asking if I want to save the changes to the template. The answer is
always no. How do I get it to stop asking to save changes to a template?

Thanks!
Bob
 
A

Anne Troy

Hi, Bob. I've always put a piece of code in the template's ThisDocument
module.
Private Sub Document_Close()

On Error Resume Next
ActiveDocument.AttachedTemplate.Saved = True
End Sub
That let's Word believe that it already HAS been saved so that it doesn't
ask, when in fact it has NOT been saved.
****************************
Hope it helps!
Anne Troy
www.OfficeArticles.com
****************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top