Adding a Slide to a Presentation : PowerPoint « PowerPoint « VBA / Excel / Access / Word






Adding a Slide to a Presentation

 
Sub add()
    Dim mySlide As Slide
    Set mySlide = ActivePresentation.Slides.Add(Index:=1, _
        Layout:=ppLayoutTitle)
End Sub

 








Related examples in the same category

1.Closing a Presentation
2.To avoid the user being prompted, set the Saved property of the Presentation object to True before using the Close method-for example: