InsertFromFile Method

         Example         Applies To

Inserts slides from a file into a presentation, at the specified location. Returns an integer that represents the number of slides inserted.

Syntax

expression.InsertFromFile(FileName, Index, SlideStart, SlideEnd)

expression   Required. An expression that returns a Slides collection.

FileName   Required String. The name of the file that contains the slides you want to insert.

Index   Required Long. The index number of the Slide object in the specified Slides collection you want to insert the new slides after.

SlideStart   Optional Long. The index number of the first Slide object in the Slides collection in the file denoted by FileName.

SlideEnd   Optional Long. The index number of the last Slide object in the Slides collection in the file denoted by FileName.