Removing Animations in PowerPoint

Something totally different, but hopefully this will save another Entrepreneur using some PowerPoint Templates (I’m using the Voodoo Presentation from TemplateZuu right now) some precious hours.

Good old Visual Basic

While it’s handy to have a lot of templates done, I found the animations pretty annoying. But as lazy I am I didn’t want to click all 100+ Master Slides to get the animations removed. So I just added this VBA Code (Visual Basic for Applications) to one PPT and opened all other presentations – and executed the removeAnimationsFromOpenPresentations macro.

Sub removeAnimationsFromOpenPresentations()
    Dim myPpt As Presentation
    Debug.Print "Open ppt's : "; Application.Presentations.Count & vbCrLf
    For Each myPpt In Application.Presentations
        Debug.Print myPpt.Name
        Call removeAnimations(myPpt)
    Next myPpt
End Sub
Private Sub removeSequences(ByRef tl As TimeLine)
    For i = tl.MainSequence.Count To 1 Step -1
    Next i
End Sub
Private Sub removeAnimations(ppt As Presentation)
    Dim d As design
    Dim m As Master
    Dim cl As CustomLayout
    Dim s As Slide
    For Each d In ppt.Designs
        Set m = d.SlideMaster
        removeSequences m.TimeLine
        For Each cl In m.CustomLayouts
            removeSequences cl.TimeLine
        Next 'cl
    Next 'd
    For Each s In ppt.Slides
        removeSequences s.TimeLine
    Next 's
    ' Turn on animations again
    ppt.SlideShowSettings.ShowWithAnimation = msoTrue
End Sub
Coding Principles

>>> import this

I like a lot of the principles that are built into the programming language Python. Some of the principles are also applicable to “real” life.

They’re a bit hidden and most people don’t know them and have never seen them. They’re easy to get as they’re built into every python interpreter.
Simply start python and enter import this:

The Zen of Python, by Tim Peters

For better readability I’ve formatted (and numbered) them here

The Zen of Python, by Tim Peters

1. Beautiful is better than ugly.

2. Explicit is better than implicit.

3. Simple is better than complex.

4. Complex is better than complicated.

5. Flat is better than nested.

6. Sparse is better than dense.

7. Readability counts.

8. Special cases aren’t special enough to break the rules.

9. Although practicality beats purity.

10. Errors should never pass silently.

11. Unless explicitly silenced.

12. In the face of ambiguity, refuse the temptation to guess.

13. There should be one– and preferably only one –obvious way to do it.

14. Although that way may not be obvious at first unless you’re Dutch.

15. Now is better than never.

16. Although never is often better than right now.

17. If the implementation is hard to explain, it’s a bad idea.

18. If the implementation is easy to explain, it may be a good idea.

19. Namespaces are one honking great idea — let’s do more of those!