Microsoft KB Archive/88404

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

Article ID: 88404

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q88404



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)} = &quot;1&quot; &quot;->->Page {page}&quot; &quot;Page {page}&quot;} Note: In this example, &quot;->&quot; 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 &quot;Page&quot; and a PAGE field); if the page is even, the even footer is inserted (in the above example, it is the word &quot;Page&quot; 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):

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

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

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: kbualink97 kbfield kbusage KB88404

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.