Thanks,
Melina
Promise me you'll make a copy of your presentation first. Then try
this. It's a step above aircode, but not a very large step.
Sub DelUnusedDesigns()
Dim x As Long
Dim oDes As Design
Dim oSld As Slide
Dim bDesInUse As Boolean
With ActivePresentation
For x = .Designs.Count To 1 Step -1
Set oDes = .Designs(x)
With oDes
For Each oSld In ActivePresentation.Slides
If oSld.Design.Name = oDes.Name Then
bDesInUse = True
Exit For
End If
Next
If Not bDesInUse Then
oDes.Delete
End If
End With
Next
End With
End Sub
==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/
PPTools add-ins for PowerPoint
http://www.pptools.com/
Promise me you'll make a copy of your presentation first. Then try
Sub DelUnusedDesigns()
Dim x As Long
Dim oDes As Design
Dim oSld As Slide
Dim bDesInUse As Boolean
With ActivePresentation
For x = .Designs.Count To 1 Step -1
Set oDes = .Designs(x)
bDesInUse = False
For Each oSld In ActivePresentation.Slides
If oSld.Design Is oDes Then
bDesInUse = True
Exit For
End If
Next
If Not bDesInUse Then
oDes.Delete
End If
Next
End With
End Sub
- Chirag
PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
"Steve Rindsberg" <ab...@localhost.com> wrote in message
news:VA.000053f...@localhost.com...
Oops. I'd set a mental reminder to do that. I must have been out of my
mind when the alarm went off. Thanks, Chirag.
> and you can check for the design directly too
> instead of comparing their names.
Ah ... thanks again. "Is" instead of "=" ... neat.
Thanks to both of you!
Melina
On Nov 2, 1:45 pm, Steve Rindsberg <ab...@localhost.com> wrote: