IsHeader Property

Applies To

HeaderFooter object.

Description

True if the specified HeaderFooter object is a header. Read-only Boolean.

See Also

SeekView property.

Example

This example selects the footer and adds a page number.

With ActiveWindow.ActivePane.View
    .Type = wdPageView
    .SeekView = wdSeekCurrentPageHeader
End With
If Selection.HeaderFooter.IsHeader = True Then
    ActiveWindow.ActivePane.View _
        .SeekView = wdSeekCurrentPageFooter
End If
Selection.HeaderFooter.PageNumbers.Add