Borders.SurroundFooter property (Word)

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

Syntax

expression. SurroundFooter

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

Example

This example formats the page border in section one of the active document so that it encompasses the header and footer on each page in the section.

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

This example adds a graphical page border around each page in section one. The page border doesn't encompass the header and footer areas.

With ActiveDocument.Sections(1) 
 .Borders.SurroundFooter = False 
 .Borders.SurroundHeader = False 
 For Each aBord In .Borders 
 aBord.ArtStyle = wdArtPeople 
 aBord.ArtWidth = 15 
 Next aBord 
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.