Slides.InsertFromFile (PowerPoint)

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)

Dim strFileName As String: strFileName = "c:\ppt\sales.ppt" 
Dim lngIndex As Long: lngIndex = 2 
Dim lngInsertFromFile As Long
lngInsertFromFile = ActivePresentation.Slides.InsertFromFile(FileName:=strFileName, Index:=lngIndex)

Arguments

The following arguments are required:

FileName (String) - The name of the file that contains the slides you want to insert.

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

The following arguments are optional

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

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