Last active
August 29, 2015 13:59
-
-
Save frankydp/10942470 to your computer and use it in GitHub Desktop.
Remove all animations from a powerpoint deck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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