IsTrailing Property

Microsoft Publisher Visual Basic

IsTrailing Property

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

expression.IsTrailing

expression    Required. An expression that returns a Page object.

Example

The following example diplays 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