Thread
: [Solved]
VBA: ppLayoutCustom
View Single Post
03-14-2013, 07:56 AM
JohnWilson
Windows 7 64bit
Office 2010 32bit
Programmer
Join Date: Nov 2008
Location: UK
Posts: 1,914
Slides.Add is legacy code from 2003. In 2010 you should use Slides.AddSlide
Sub MyLayout()
Dim ocust As CustomLayout
Set ocust = ActivePresentation.SlideMaster.CustomLayouts(2)' change number
ActivePresentation.Slides.AddSlide 1, ocust
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
JohnWilson
View Public Profile
Find all posts by JohnWilson