DifferentFirstPageHeaderFooter Property

Microsoft Word Visual Basic

DifferentFirstPageHeaderFooter Property

       

True if a different header or footer is used on the first page. Can be True, False, or wdUndefined. Read/write Long.

Example

This example checks each section in the active document for headers and footers that are different on the first page and displays a message if any are found.

Dim secLoop As Section

For Each secLoop In ActiveDocument.Sections
    If secLoop.PageSetup _
           .DifferentFirstPageHeaderFooter = True Then
        Msgbox "Section " & secLoop.Index _
            & " has different first page headers & footers."
    End If
Next secLoop