Compartilhar via


HeaderFooter.IsHeader Property

Word Developer Reference

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

Syntax

expression.IsHeader

expression   An expression that returns a HeaderFooter object.

Example

This example selects the footer and adds a page number.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow.ActivePane.View
    .Type = wdPrintView
    .SeekView = wdSeekCurrentPageHeader
End With

If Selection.HeaderFooter.IsHeader = True Then ActiveDocument.ActiveWindow.ActivePane.View _ .SeekView = wdSeekCurrentPageFooter End If

Selection.HeaderFooter.PageNumbers.Add

See Also