PageSetup.DifferentFirstPageHeaderFooter property (Word)

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.

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

PageSetup Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.