HeadersFooters.SlideNumber Property

PowerPoint Developer Reference

Returns a HeaderFooter object that represents the slide number in the lower-right corner of a slide, or the page number in the lower-right corner of a notes page or a page of a printed handout or outline. Read-only.

Syntax

expression.SlideNumber

expression   A variable that represents a HeadersFooters object.

Return Value
HeaderFooter

Example

This example hides the slide number on slide two in the active presentation if the number is currently visible, or it displays the slide number if it is currently hidden.

Visual Basic for Applications
  With Application.ActivePresentation.Slides(2) _
        .HeadersFooters.SlideNumber
    If .Visible Then
        .Visible = False
    Else
        .Visible = True
    End If
End With

See Also