SlideShowSettings.EndingSlide property (PowerPoint)
Returns or sets the last slide to be displayed in the specified slide show. Read/write.
Syntax
expression. EndingSlide
expression A variable that represents an SlideShowSettings object.
Return value
Long
Example
This example runs a slide show of the active presentation, starting with slide two and ending with slide four.
With ActivePresentation.SlideShowSettings
.RangeType = ppShowSlideRange
.StartingSlide = 2
.EndingSlide = 4
.Run
End With
See also
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.