Hello experts! i have been battling with getting the right VBA to apply a custom layout to my slides. it is like pulling hair because I am totally new to VBA (still trying to learn it) so I hope someone who has done this or know can help out! Much appreciated.

1. I have hundreds of powerpoint decks that needed to switch to a new theme. I have the VBA created for that and now I need to use VBA to switch the custom layout of the slides. When I check the Layout area, there are like 20 different layouts from the standard template. See image attached. I need to change the First Slide of the deck to the "Title slide" layout (as shown on the layout collection), and the remaining slides to the "Title and Content" (as shown on the layout collection). I tried the codes for the first slide but it is not working...

Will someone please HELP??!! I need to do it for the first slide and the remaining slides....THANK YOU!


Sub ChangeIntroSlideLayout()


ActivePresentation.Slides(1).Layout = ppLayoutTitleslide




End Sub

standard layouts.jpg