Page.IsLeading property (Publisher)

True if the specified Page object is a leading page of a two-page spread. Read-only Boolean.

Syntax

expression.IsLeading

expression A variable that represents a Page object.

Return value

Boolean

Example

The following example displays for each page whether the page is a trailing or leading page in the publication.

Dim objPage As Page 
Dim strPageInfo As String 
For Each objPage In ActiveDocument.Pages 
 strPageInfo = "Page number " & objPage.PageNumber 
 If objPage.IsLeading Then 
 strPageInfo = strPageInfo & " is a leading page." & Chr(13) 
 ElseIf objPage.IsTrailing Then 
 strPageInfo = strPageInfo & " is a trailing page." & Chr(13) 
 End If 
 MsgBox strPageInfo 
Next objPage

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.