Thread: [Solved] VBA: ppLayoutCustom
View Single Post
 
Old 03-16-2013, 04:23 AM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
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
I got it. It should be somewhere in SlideMaster that is the answer to my doubt.
Many thanks.
Reply With Quote