Number related procedures in class Slide (PowerPoint VBA)

This page presents procedures from class Slide related to the theme Number: SlideNumber and SlideRange.SlideNumber

SlideNumber

Returns the slide number.

The SlideNumber property of a Slide object is the actual number that appears in the lower-right corner of the slide when you display slide numbers. This number is determined by the number of the slide within the presentation (the SlideIndex property value) and the starting slide number for the presentation (the FirstSlideNumber property value). The slide number is always equal to the starting slide number + the slide index number - 1.

Dim lngSlideNumber As Long
lngSlideNumber = ActivePresentation.Slides.Range(1).SlideNumber

SlideRange.SlideNumber

Returns the slide number.

The SlideNumber property of a Slide object is the actual number that appears in the lower-right corner of the slide when you display slide numbers. This number is determined by the number of the slide within the presentation (the SlideIndex property value) and the starting slide number for the presentation (the FirstSlideNumber property value). The slide number is always equal to the starting slide number + the slide index number - 1.

Dim lngSlideNumber As Long
lngSlideNumber = ActivePresentation.Slides.Range.SlideNumber