Borders.EnableOtherPagesInSection property (Word)

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

Syntax

expression. EnableOtherPagesInSection

expression A variable that represents a 'Borders' object.

Example

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

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