Is there a way to never save templates in Word? We have a lot of templates that we use to create standard documents. When a document based on one of these templates is closed, the user is asked if they want to save changes to the template. I wrote a macro that prevents this, but only if the main document was saved just prior to closing. Is there a way to prevent the template from ever being saved/changed from a document that is based in it?
migrated from stackoverflow.com Feb 5 '13 at 15:46
This question came from our site for professional and enthusiast programmers.
I reviewed the link above and it lead me to the answer. I am creating the new documents with a macro that loads the proper template. i just added two lines to the macro:
The first line makes the template appear to be saved (so that user is not prompted). The second line breaks the connectioun to the template. (this sets the associated template to "Normal".
This appears to be a good solution to ensure that the user never accidentally saves any formatting changes back to the master template.