SurroundHeader Property

Microsoft Word Visual Basic

expression.SurroundHeader

expression    Required. 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