WD: Setting Up Different First Header/Footer for Even/Odd Pages

Last reviewed: February 4, 1998
Article ID: Q88404
The information in this article applies to:
  • Microsoft Word for Windows versions 1.0, 1.1, 1.1a
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

SUMMARY

In a Microsoft Word for Windows document containing different even/odd header or footer formatting, you can create a different first header or first footer that automatically determines whether the page number is even or odd and then inserts the appropriate first header or first footer.

MORE INFORMATION

When you select the Different First Page check box, Word for Windows not only sets up a different first header, but also sets up a different first footer. If it is necessary to maintain the appropriate even or odd footer on the first page of the section, but that page could be either even or odd, insert the following field in the first footer:

   {if {=mod({page},2)} = "1" "->->Page {page}" "Page {page}"}

   Note: In this example, "->" represents a TAB character.

The MOD function divides the current page number by two and then tests to determine if the remainder equals one. If the remainder equals one, the page is odd; if the remainder does not equal one, it equals zero (0), which means the page is even. If the page is odd, the odd page footer is inserted (in the above example, it is two tabs, then the word "Page" and a PAGE field); if the page is even, the even footer is inserted (in the above example, it is the word "Page" and a PAGE field aligned at the left margin).

For example, suppose you have a document for which you want to create different even and odd headers and footers. However, you want the header (but not the footer) on the first page of each section to be blank, similar to the following:

   Odd page, first page
   of section with             Even page with
   footer, but no header       header and footer
   __________________          ___________________
  |                  |        |                   |
  |                  |        | Header            |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |                  |        |                   |
  |       Page {page}|        | Page {page}       |
  |__________________|        |___________________|

Reference(s):

"Microsoft Word for Windows User's Guide," version 2.0, pages 579-582, 639-641

"Microsoft Word for Windows User's Reference," version 1.x, pages 95-96, 97-98, 103, 147-149


KBCategory: kbusage
KBSubcategory: kbfield
Additional query words: 1.0 1.10 1.10a 2.0 2.0a 6.0 7.0
word95
word7 word6 winword 2.0a-CD 2.0b 2.0c winword2 8.0 word8 word97

Keywords : kbfield kbualink97 kbusage
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0 7.
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.