Compartilhar via


PageSetup.DifferentFirstPageHeaderFooter Property

Word Developer Reference

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

Syntax

expression.DifferentFirstPageHeaderFooter

expression   An expression that returns a PageSetup object.

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.

Visual Basic for Applications
  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

See Also