Borders.EnableFirstPageInSection property (Word)

True if page borders are enabled for the first page in the section. Read/write Boolean.

Syntax

expression. EnableFirstPageInSection

expression A variable that represents a 'Borders' object.

Example

This example adds a border around the first page in the first section in the selection.

Dim borderLoop As Border 
 
With Selection.Sections(1) 
 .Borders.EnableFirstPageInSection = True 
 .Borders.EnableOtherPagesInSection = False 
 For Each borderLoop In .Borders 
 borderLoop.ArtStyle = wdArtPeople 
 borderLoop.ArtWidth = 15 
 Next borderLoop 
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.