Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 1.61 KB

PowerPoint.PageSetup.FirstSlideNumber.md

File metadata and controls

61 lines (33 loc) · 1.61 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PageSetup.FirstSlideNumber property (PowerPoint)
vbapp10.chm527003
vbapp10.chm527003
PowerPoint.PageSetup.FirstSlideNumber
277f613b-8c3a-d8bb-593c-a66ca41b4fa0
06/08/2017
medium

PageSetup.FirstSlideNumber property (PowerPoint)

Returns or sets the slide number for the first slide in the presentation. Read/write.

Syntax

expression. FirstSlideNumber

expression A variable that represents a PageSetup object.

Return value

Long

Remarks

The slide number is the actual number that will appear in the lower-right corner of the slide when you display slide numbers. This number is determined by the number (order) 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 will always be equal to the starting slide number + the slide index number - 1. The SlideNumber property returns the slide number.

Example

This example shows how changing the first slide number in the active presentation 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

PageSetup Object

[!includeSupport and feedback]