Code:
Sub AddSlides()
With ActivePresentation
''' the pCustomLayout parameter is the same as ppLayoutTitle?
.Slides.AddSlide 1, .SlideMaster.CustomLayouts(1)
''' The ".Slides.Add" is auto-corrected as ".Slides.AddSlide", why?
.Slides.Add 1, ppLayoutTitle
End With
End Sub
Please see the two comment lines.
Thanks.