View Single Post
 
Old 11-26-2016, 05:57 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

I'm guessing you have one slidemaster with 12 custom layouts.

If so try this

Code:
Sub BreakAllLinks()

Dim shp As Shape
Dim sld As Slide
Dim ocust As CustomLayout

'Loop Through Each Slide in ActivePresentation
  For Each sld In ActivePresentation.Slides
    For Each shp In sld.Shapes
      On Error Resume Next
        shp.LinkFormat.BreakLink
    Next shp
  Next sld
  
'Loop through layouts
  For Each ocust In ActivePresentation.Designs(1).SlideMaster.CustomLayouts
    For Each shp In ocust.Shapes
      On Error Resume Next
        shp.LinkFormat.BreakLink
    Next shp
  Next ocust

End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote