EnableFirstPageInSection Property

Borders.EnableFirstPageInSection Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .EnableFirstPageInSection

expression A variable that represents a Borders object.

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
© 2016 Microsoft