save changes to document template

B

Bob Day

Using Windows 03 with latest updates -

This just started, whenever I save a document based on a .dot templeate I
created, after I have saved the document, it askes if I want to save changes
to document template (which I never do). How do I turn this off?

Thansk
Bob
 
C

Cindy M.

Hi Bob,
Using Windows 03 with latest updates -

This just started, whenever I save a document based on a .dot templeate I
created, after I have saved the document, it askes if I want to save changes
to document template (which I never do). How do I turn this off?
Apparently, something you're doing in the document is writing back to the
template. This can happen...

The only way to stop it (short of tracking down the action that's causing the
problem and doing something differently) would be to use macro code. The line
you need is simple enough:
ActiveDocument.AttachedTemplate.Saved = True
'makes Word thing there are no pending changes

The trickier part is figuring out what action needs to trigger it. One
possibiltiy would be to put a procedure named FileSave in the template and do
something like this:
Sub FileSave()
ActiveDocument.AttachedTemplate.Saved = True
ActiveDocument.Save
End Sub

You'd probably also need to intercept FileSaveAs; something like this should
work:
Sub FileSaveAs()
ActiveDocument.AttachedTemplate.Saved = True
Dialogs(wdDialogFileSaveAs).Show
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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