Skip to content

Instantly share code, notes, and snippets.

@frankydp
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save frankydp/10942470 to your computer and use it in GitHub Desktop.

Select an option

Save frankydp/10942470 to your computer and use it in GitHub Desktop.
Remove all animations from a powerpoint deck
Sub StripAllBuilds()
Dim I As Integer: Dim J As Integer
Dim oActivePres As Object
Set oActivePres = ActivePresentation
With oActivePres
For I = 1 To .Slides.Count
If Val(Application.Version) < 10 Then
' Older versions of PowerPoint 97/2000
' In each slide set the animation property
' of the Shape object to FALSE
For J = 1 To .Slides(I).Shapes.Count
.Slides(I).Shapes(J).AnimationSettings.Animate = msoFalse
Next J
Else
' New versions support the Timeline object
For J = .Slides(I).TimeLine.MainSequence.Count To 1 Step -1
.Slides(I).TimeLine.MainSequence(J).Delete
Next J
End If
Next I
End With
Set oActivePres = Nothing
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment