Hi Pitch:
OK, a "Global" template is a class of templates whose resources are
available to all open documents in Word, as opposed to an "Attached
Template" that needs to be explicitly attached to each individual document
and whose resources are available only to the documents to which they are
attached.
Global templates are normally loaded as add-ins, usually by placing them in
the Word Startup folder, from which they will be automatically loaded at
application launch.
The Normal template is a special case of global template. It resides in the
User Templates folder, not in the Startup folder. And it must always be
loaded or Word cannot run. Which means that if Word cannot find or load it,
it will create a new one when the application launches. The Normal template
has another ability: it can be one of the "Non-File" templates. In other
words, it need not exist as a file. You will almost never see this on the
Mac, but if Word creates a default standard template, and no changes to it
are made by either Word or the user, the template exists only in memory and
will not be saved as a file.
Because of the above, the Normal template has one further special attribute:
Word uses it as the personal scratch-pad in which it stores a wide range of
settings and resources for the logged-in user.
Knowing all of this, you can see that it's a seriously bad idea to render
the Normal template read-only. You cannot prevent changes to Normal: Word
will update the copy in memory constantly while it works. However, if the
copy on disk is read-only, two problems will occur:
1) Just after lunch, the number of pending changes to Normal will start to
run Word out of memory or file handles. You will get slow-downs, crashes,
poor performance from other applications, and "unable to save" messages.
2) You will get stalled at "Do you wish to save changes?" dialog each time
you quit Word.
You can prevent the second by intercepting the Application Quit event and
declaring Application.NormalTemplate.Saved = True
If you do, Word will start to crash over time, because various pointers and
resources that should have been stored in the Normal template will become
inconsistent with the actual contents of those resources on your system.
So: To solve your problem, turn OFF the "Prompt to save Normal" prompt,
make sure your Normal template file is not set to Read-only, and make sure
that you have RWX permissions to the folder it is in and that no other user
has access to it (if another user has the Normal template open when you try
to quit, you will get the problem you are discussing).
Best practice is to ensure that no other user CAN get access to your Normal
template by placing it in a folder to which only you have access.
Inexperienced system administrators sometimes create problems in this
regard, either by pointing all users at the same instance of Normal Template
on the network, or by placing a copy of the Normal template in the same
folder as the application executable. On launch, Word searches a hierarchy
of locations for its templates: the first of which is the application
folder. If it finds a Normal there, that's the one it loads, and it is
often read-only and so gives problems.
Hope this helps
Thanks for the response, Daiya. Most grateful!
Yes, absolutely: the message I get is exactly
I've never seen the message you are getting. I don't even know if I've
ever heard of a "global template."
Hmm. Well I wonder where, and how, my Normal template is being changed.
I don't purposely change any of the Styles. Certainly no window comes
up, in the course of the day, saying "You are about to change the
template. Are you sure" or any such thing.
I guess my next question is: is there any way to lock a template so
that no changes can possibly ever be made?
Would it be better if I created a personalized template, and use that?
I'll do whatever it might take to not get these messages.
--
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410