I have a PowerPoint presentation that has been created through VBA in Excel, to this presentation I have applied a custom template including various custom layouts. I have no issues referring to the specific slide in PowerPoint through Excel VBA, but when trying to change the layout to one of the custom ones I simply can't seem to refer to the different layouts through Excel.

Referring to them via PowerPoint VBA is done by using .SlideMaster.CustomLayouts, that is unfortunately not an option since I am creating a new PowerPoint each time running the code from Excel and Excel wont let me dim something as a CustomLayout.

Any solution on how to be able to switch between custom layouts in PowerPoint via Excel would be much appreciated!

Thanks in advance!