Slides.AddSlide (PowerPoint)

Creates a new slide, adds it to the Slides collection, and returns the slide.

If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this method maps to the following types:

Syntax : expression.AddSlide (Index, pCustomLayout)

Dim lngIndex As Long: lngIndex = 
Dim sldAddSlide As Slide
Set sldAddSlide = ActivePresentation.Slides.AddSlide(Index:=lngIndex, pCustomLayout:=)


The following arguments are required:

Index (Long) - The index of the slide to be added.

pCustomLayout (CustomLayout) - The layout of the slide.