Partager via


PrintRange.End Property (PowerPoint)

Returns the number of the last slide in the specified print range. Read-only.

Syntax

expression .End

expression A variable that represents an PrintRange object.

Return Value

Long

Example

This example displays a message that indicates the starting and ending slide numbers for print range one in the active presentation.

With ActivePresentation.PrintOptions.Ranges

    If .Count > 0 Then

        With .Item(1)

            MsgBox "Print range 1 starts on slide " & .Start & _

                " and ends on slide " & .End

        End With

    End If

End With

See Also

Concepts

PrintRange Object

PrintRange Object Members