That's all very well, but you need to have a sound understanding of a Word document's structure before you can do this.
First: A document can contain multiple Sections. The second and subsequent sections may or may not have their headers & footers linked to the preceding Section.
Second: Every Section in a Word document has three header and footer objects:
• first page;
• even page; and
• primary.
The 'primary' header and footer are always active; whether the 'first page' and/or 'even page' header and footer are active for a given Section depends on what page layout options have been chosen for the document/section. You can't use the 'first page' and/or 'even page' header and footer unless the appropriate page layout options have been chosen.
Anything added to a 'first page' header or footer will only appear on the first page of the Section concerned (and the subsequent Section's 'first page' header or footer if that Section's page layout options provide for one and the subsequent Section's 'first page' header or footer, as appropriate, is linked to the previous Section's corresponding 'first page' header or footer).
Anything added to an 'even page' header or footer will only appear on the even pages of the Section concerned (and the subsequent Section's 'even page' header or footer if that Section's page layout options provide for one and the subsequent Section's 'even page' header or footer, as appropriate, is linked to the previous Section's corresponding 'even page' header or footer).
Subject to the the 'first page' and/or 'even page' page layout options, anything added to a 'primary' header or footer will appear on every page of the Section concerned (and the subsequent Section's 'primary' header or footer if that Section's 'primary' header or footer, as appropriate, is linked to the previous Section's corresponding 'primary' header or footer).
So, before anything could be coded, one would need to know whether:
• your source document has provided for all three header & footer objects;
• how you want the headers & footers in your target documents to be handled. For example, should the target documents be modified so that the header(s) & footer(s) from your source document be replicated only on the first page in them, or on the first page in every Section (this, of course, presupposes you already know how those documents are structured and what outcome would be appropriate).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|