FindBySlideID Method

         Example         Applies To

Returns a Slide object that represents the slide with the specified slide ID number. Each slide is automatically assigned a unique slide ID number when it's created. Use the SlideID property to return a slide's ID number.

Syntax

expression.FindBySlideID(SlideID)

expression   Required. An expression that returns a Slides collection.

SlideID   Required Long. Specifies the ID number of the slide you want to return. PowerPoint assigns this number when the slide is created.

Remarks

Unlike the SlideIndex property, the SlideID property of a Slide object won't change when you add slides to the presentation or rearrange the slides in the presentation. Therefore, using the FindBySlideID method with the slide ID number can be a more reliable way to return a specific Slide object from a Slides collection than using the Item method with the slide's index number.