removing message do you want to save changes

C

cw

I have created a template and when i create a document based on the template and then save the document i am asked if i want to save the template. Then when i close the document i am asked if i want to save changes to xxxxx.dot
Can i get rid of either of these or both
I have seen some code in an earlier answer (Jean-Guy Marcil) and tried that but it doesn't have any effect

Many thanks
 
J

Jean-Guy Marcil

Hi cw,

I do not remember the post you are referring to... I browse through a few
NG... ;-)

If you have done so already, could you be so kind as to post all the code
contained in your template. If you feel there is too much code, start by the
This_Document class module.

I have seen this problem many times, and always have been able to correct
the situation. Usually, you want to pin down all the events that caused
changes to your template, thus prompting Word to ask if you want to save it
or not.
Once you have pinpointed the said events, then you either save the template
right after the event has occurred or you make Word believe it has been
saved.

--
Cheers!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org


cw said:
I have created a template and when i create a document based on the
template and then save the document i am asked if i want to save the
template. Then when i close the document i am asked if i want to save
changes to xxxxx.dot.
Can i get rid of either of these or both?
I have seen some code in an earlier answer (Jean-Guy Marcil) and tried
that but it doesn't have any effect.
 
C

Charles Kenyon

The reason you are being asked these questions is that you are, somehow,
making changes in the templates involved. If you eliminate the changes you
will eliminate the questions. The following are common changes made to
templates from within documents:
1) Change the interface - toolbars - keyboard shortcuts - menus
2) Change styles and save changes to template
3) Change AutoText
4) Record macros

Any of these going on, either directly, or through code in your templates?

Is xxxxx.dot normal.dot?

Which version of Word are you using?
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

cw said:
I have created a template and when i create a document based on the
template and then save the document i am asked if i want to save the
template. Then when i close the document i am asked if i want to save
changes to xxxxx.dot.
Can i get rid of either of these or both?
I have seen some code in an earlier answer (Jean-Guy Marcil) and tried
that but it doesn't have any effect.
 

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