iYogi, Inc. BBB Business Review

maxcast

In Microsoft PowerPoint I want to make a macro for removing master layouts that are not used in a slide. How can I find the layouts that are not being used?

asked on 10th Aug 2011 | 1 Answers | Answer It!


uttam

You can use this:

Sub CleanupDesigns()
Dim I As Integer
Dim J As Integer
Dim oPres As Presentation
Set oPres = ActivePresentation
On Error Resume Next
With oPres
For I = 1 To .Designs.Count
For J = .Designs(I).SlideMaster.CustomLayouts.Count To 1 Step -1
.Designs(I).SlideMaster.CustomLayouts(J).Delete
Next
Next I
End With
End Sub


Here’s to Good Karma

More Q & A, Solutions and Videos
will answer your tech questions for FREE
Here's to Good Karma

I have problem with:


LaptopDesktopPeripherals