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

HeadersFooters.SlideNumber Property (PowerPoint)

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

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

Concepts

HeadersFooters Object

© 2018 Microsoft