HeadersFooters.SlideNumber property (PowerPoint)

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.

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

See also

HeadersFooters Object

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.