opening and modifying documents without modifying attached templat

P

Peter_A_M (NL)

Although this not a strict vba question, some knowledge of the object model
could be of help, I think.

My question:
In some cases (but certainly not all!) after opening a document and
immediately closing it again or closing it after modification (either saving
these modifications or not), it happens that I'm prompted if I want to save
modifications in the attached template.
As far as I know no modifications have been made though. Nevertheless
probably some property of some object has been changed upon opening.
What could this be? How can I identify this? And most important: how can I
avoid this??

Thanks for any help!
Peter

(I've been thinking of something like styles which differ between the
document and the template; or updating a property like 'date last opened' or
so...)
 
T

Tony Jollans

Identifying the actual cause can sometimes be difficult, but a common cause
of this is toolbar buttons being changed, although you have identified other
possible causes as well.

The only way to avoid it is to change the code in the template so that it
either saves the change or sets the template to 'saved' so that Word doesn't
want to try to save it. You *could* set it to 'saved' yourself in a separate
procedure (in your own global template perhaps) but that isn't really the
way to do it.
 

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