Hi Norm:
Good! You are exactly correct in what you say. You are understanding one
of the most complex areas of Word use. Well done: this is a major
achievement. One of us should Linda!
When you start customising things, you need to wrap your mind around the
Word Document Object Model.
You must understand which objects are stored where in relation to the text
of the open document, and the customisation context in which you make the
changes. You will get to it over time: don't expect to understand it all
overnight.
Draw yourself a picture of nested squares:
The outside one is "The Internet." Inside that is "Your computer". Inside
that is "The Word Application." Now the fun begins:
Inside the Word application, show five boxes ...
* Across the top, the Normal Template and the Word Preferences
* On the next level, the Global Add-ins
* On the next level, The Attached template
* On the next level, The Open Document
(There is another collection of boxes in a hierarchy within the open
document, but we need not think about those for now.)
Now, for any "thing" that you need, "the system" (which is the collection of
all of the above) is going to look UPWARDS for what it wants, and take it
from the first place it finds it.
Now grab some colours. Let's use Red for Styles.
Draw a red list in the open document, the attached template, the global
add-ins, and the Normal template.
Styles can be in any of those.
The formatting properties of a given style can be different in each of those
places.
Word will use the first copy of the style that it comes to: it will grab the
first one it finds with the correct name.
Now, let's use Blue for toolbars. Draw a blue line in each of: The Open
Document, The Attached Template, The Global Add-ins, The Normal Template,
and The Word Application.
Same deal: you can choose to save a specified toolbar in any of those
locations. Word will use the first one it finds looking upwards. Word is
looking only at the toolbar name: a toolbar named "Formatting" may have
completely different commands in two locations; you (as the Customisation
Developer) are in charge of, and must control, which copy is going to be
used.
Now consider your scenario in the light of that:
* When you created Doc A, Word copied the Styles Table from your Normal
Template to Doc A: a snapshot, stored at the instant of creation.
* You then updated your Normal Template and your custom toolbar. You did
not specify to store the toolbars anywhere else, so Word stored them in your
Normal template.
* You then opened Doc A.
Word looked in its Preferences to see which toolbars should be visible and
went looking for them.
It first looked inside Doc A for toolbars, but there weren't any. You don't
have an Attached Template, or a Global Add-in. So Word kept looking up the
chain until it came to the Normal Template. There, it found your toolbar
and displayed it.
The changes you just made appeared, because there is only one copy of this
object in the system, and it is in the Normal template.
Now, you hit a button that calls one of the styles that you modified in the
Normal Template. What happens?
The answer depends on whether that style is currently in Doc A or not.
Since it was in Normal template before you created Doc A, it will be in Doc
A. And that's the version Word will use.
It will use the first copy of that style that it finds, looking up the
chain. The first one it comes to is the one in the document. Which did not
get customised. So you will use the old version in Doc A. If you now
create Doc B, it will have the new version of the style.
There's the answer to your question.
Now, for your next assignment...
If you create another template: Call it Template A, by copying your Normal
Template. Save Template A, then Open it, and make a change to
"NormsToolbar" in Template A (add a button). Make sure "Save in" is set to
"Template A" and Save.
Now, create a document by double-clicking Template A. You now have Document
A, no Attached Template, it's using Normal. And Document B, which is
attached to Template A.
Click between Document A and Document B.
When you click in Document B, your new toolbar button will appear.
When you click in Document A, it will go away again.
Because each time, Word is looking UP the chain for the toolbar it wants.
When you click in Document A, Word looks in the Preferences and discovers
that it needs the NormsToolbar toolbar. It looks for an Attached Template.
There isn't one. It looks in Normal, finds the NormsToolbar toolbar, and
displays it.
When you click in Document B, Word looks in the Preferences and discovers
that it needs the NormsToolbar toolbar. It looks for an Attached Template.
There is one. It looks in there, finds the NormsToolbar toolbar, and
displays that version, which has your latest change.
When you do this for a living, you spend a lot of time managing the "scope"
of changes so that customisations appear where they are supposed to, only
where they are supposed to, and not anywhere else.
Enjoy!
Trying to make sure that I understand the impact of revising both styles
and toolbars on newly created and old Word documents.
1. I create a "doc A" based on my Normal Template and save it. Close
that doc.
2. Then I make changes to my Normal Template: modifying some of the
styles used in doc A, creating some new styles and make some changes to
my custom toolbar.
3. I open doc A to make some changes.
I believe, but I'm not positive
, that:
a) the style changes I made in step 2 will have not change the
previously created text in doc A
b) nor will they be in effect when I create new text in doc A. In other
words, my prior styles at the time doc A was first created will rule.
c) However, the custom toolbar will be available.
I'm not sure what will happen if I created a new style and placed it on
the custom toolbar.
Appreciate any input in confirming or correcting my understanding of
template and style changes.
Thanks.
--
The email below is my business email -- Please do not email me about forum
matters unless I ask you to; or unless you intend to pay!
John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410 | mailto:
[email protected]