Table of contents
TOC
Collapse the table of content
Expand the table of content

SlideRange.SlideNumber Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the slide number. Read-only.

Syntax

expression. SlideNumber

expression A variable that represents a SlideRange object.

Return Value

Integer

Remarks

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.

Example

This example shows how changing the first slide number affects the slide number of a specific slide.

With Application.ActivePresentation

    .PageSetup.FirstSlideNumber = 1   'starts slide numbering at 1

    MsgBox .Slides(2).SlideNumber     'returns 2



    .PageSetup.FirstSlideNumber = 10 'starts slide numbering at 10

    MsgBox .Slides(2).SlideNumber     'returns 11

End With

See also

Concepts

SlideRange Object

© 2018 Microsoft