I will try to explain a little more:
You must copy all three macros to the VBE (starting with "Option Explicit"
and to the end of the article).
If you copy and paste all three macros in one operation, and if dotted
separator lines appear _red_ in the VBE, either delete those lines or insert
a ' (single quote) in the start of the lines (which will change the lines to
comments).
The macros are supposed to be inserted in a _template_ (.dot) and will work
in all documents (.doc) based on that template and in the template itself.
What the macros do:
If you try to go to the header or footer of a document based on the
template, the macros will prevent this by returning to the main body of the
document at once.
Important: When you have inserted the macros in the VBE and saved, you need
to close the template and open it again (or create a document based on the
template) in order to test the effect. The macros will not be able to run
until you have done this.
If you later need to edit the header and/or footer of the template, you need
access to the header/footer - i.e. you need to prevent the macros from
running while editing. You can do this by pressing and holding the Shift key
when you _open_ the template. Alternatively, you can go to the VBE and
comment the macro "wdApp_WindowSelectionChange" while editing (i.e. put
single quotes in front of the code lines).
Hope this helps.
--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word