Borders.SurroundHeader property (Word)

True if a page border encompasses the document header. Read/write Boolean.

Syntax

expression. SurroundHeader

expression An expression that returns a 'Borders' collection object.

Example

This example formats the page border in section one of the active document to exclude the header and footer areas on each page.

With ActiveDocument.Sections(1).Borders 
 .SurroundFooter = False 
 .SurroundHeader = False 
End With

See also

Borders Collection 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.