Re: Stop template "Save Changes"
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Dan Kelly was telling us:
Dan Kelly nous racontait que :
We have a number of standard templates sat on a Network Share and
pointed at by the Workgroup Templates setting in Word 2000.
All of the templates are marked as Read Only in their file properties.
All the templates can be used by many people.
One template in particular insists on asking you if you want to "Save
Changes to blank.dot" when you save documents created using it. Of
course it then sulks when it finds the document is read-nly.
Any suggestions on how to stop it asking?
That template must have macro(s) whose code changes the template itself.
What is that code?
It may be possible to re-write it to avoid that problem.
If not, right after that code that changes the template, add this line:
ThisDocument.Saved = True
This will tell Word that the code container (ThisDocument = the template
itself) does not need to be saved.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site:
http://www.word.mvps.org
.
Relevant Pages
- Re: Word closing down
... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... emptied the Template folder (including the subfolders Document Themes ... (microsoft.public.word.docmanagement) - Re: find existence of autotext entries
... "Doug Robbins - Word MVP" wrote in message ... Public Function fcnFindVariable(myVariableName As String) As Boolean ... For an example that's perhaps a bit more on point, here is how I approach inserting AutoText: ... It's a bit different from the OP's situation and from the solution that Graham provided because the AutoText entries are always stored in the attached template, but it does provide an example of error handling that doesn't just rely on OERN and that notifies the user when an error occurs and provides instruction on what to do in response to the error condition. ... (microsoft.public.word.vba.general) - Re: find existence of autotext entries
... Public Function fcnFindVariable(myVariableName As String) As Boolean ... For an example that's perhaps a bit more on point, here is how I approach inserting AutoText: ... It's a bit different from the OP's situation and from the solution that Graham provided because the AutoText entries are always stored in the attached template, but it does provide an example of error handling that doesn't just rely on OERN and that notifies the user when an error occurs and provides instruction on what to do in response to the error condition. ... "Doug Robbins - Word MVP" wrote in message ... (microsoft.public.word.vba.general) - Re: Word closing down
... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... The default template for Word 2007 is called ... (microsoft.public.word.docmanagement) - Re: Word closing down
... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... The default template for Word 2007 is called ... (microsoft.public.word.docmanagement) |
|