Replicate animation from one slide to another identical slide
PowerPoint 2010 introduced two new methods for copying and transfering animations to another shape. We will use that to transfer animation from one slide to another identical slide. The follow assumptions are made. Both slides are identical, have shapes with the same names and the target slide has no previously assigned animations.
Supported versions: PowerPoint 2010+
' -------------------------------------------------------------------------------- ' Copyright ©1999-2018, Shyam Pillai, All Rights Reserved. ' -------------------------------------------------------------------------------- ' You are free to use this code within your own applications, add-ins, ' documents etc but you are expressly forbidden from selling or ' otherwise distributing this source code without prior consent. ' This includes both posting free demo projects made from this ' code as well as reproducing the code in text or html format. ' --------------------------------------------------------------------------------Sub Test() Call TransferAnimation(ActivePresentation.Slides(1), ActivePresentation.Slides(2)) End Sub Sub TransferAnimation(sourceSlide As Slide, targetSlide As Slide) Dim sourceShape As Shape Dim targetShape As Shape Dim eft As Effect Dim I As Integer Dim col As New Collection On Error Resume Next' Multiple references not needed so use a collection to get only one reference of the shape with multiple animations |
Copyright 1999-2018 (c) Shyam Pillai. All rights reserved.