OddAndEvenPagesHeaderFooter Property

Applies To

PageSetup object.

Description

True if the specified PageSetup object has different headers and footers for odd-numbered pages and even-numbered pages. Can be True, False, or wdUndefined. Read/write Long.

See Also

Exists property, PageSetup object, ShowFirstPageNumber property.

Example

This example creates different headers and footers for odd-numbered pages and even-numbered pages in Document1.

Set myDoc = Documents("Document1")
myDoc.PageSetup.OddAndEvenPagesHeaderFooter = True
With myDoc.Sections(1)
    .Headers(wdHeaderFooterPrimary).Range.InsertAfter "Odd Header"
    .Headers(wdHeaderFooterEvenPages).Range.InsertAfter "Even Header"
End With