Macros: 'all active models' and 'normal dot'

  • Thread starter Thread starter Dave Neve
  • Start date Start date
D

Dave Neve

Hi

Could sm please tell me the difference between 'all active models' and
'normal dot' when it comes to stocking a macro in Word 2002

It seems to me that if I put it into 'normal dot', it is also available in
'all active models' anyway so why bother.

And what is 'all active models' exactly?

I just can't seem to get my head around it.

Thanks
 
Hi, Dave,

You're lucky that I have my mind-reading machine turned on today. :-) Your
French-to-English translation isn't quite right. In English versions of
Word, what you call 'models' is translated as 'templates'. Also, instead of
'stocking', use the term 'storing'.

When you open the Tools > Macro > Macros dialog, the 'Macros in' dropdown
has two purposes:

First, it controls how Word creates the list of macros shown in the dialog.
When it is set to 'All active templates and documents', the list includes
the macros in Normal.dot, the macros in all add-ins (see the list of add-ins
in the Tools > Templates and Add-Ins dialog), and any macros in the active
document itself. If you change the dropdown to 'Normal.dot', the list
excludes macros from add-ins or from the active document.

Second, it controls where a new macro will be created if you type a new name
and press the Create button. For this purpose, the setting 'All active
templates and documents' works the same way as the setting 'Normal.dot' --
that is, either setting will cause the new macro to appear in Normal.dot.

You are correct that storing a macro in Normal.dot makes it available in all
documents, regardless of which template the document is based on. If that's
what you want, do it that way. A macro that is stored in a global add-in
(that is, a template stored in the Word Startup folder) will also be
available in all documents; there are some differences in behavior for
macros named AutoExec, AutoNew, or AutoOpen depending on where they're
stored (see http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm).

Sometimes it's desirable to have macros that are available only in documents
based on a specific template. In that case, you should put the macros into
that template instead of Normal.dot or a global add-in.
 
Thanks for the spot on reply. I'm actually Englsih but cos XP is in French,
I'm not always sure of the English equivalent.

Thanks again
 
Back
Top