OfficeTips Home || VBA Section || General Section || Download Section || Privacy Policy

New methods and properties in PowerPoint 2010

There are several new methods are properties are of interest in the new release of PowerPoint. Let us take a look at some of them. I'll keep adding examples here as when I find a useful code snippet to illustrate it.

Supported versions: PowerPoint 2010


Pickup and Apply Animation: PickupAnimation and ApplyAnimation are two new methods associated with shapes to complete the ability to pickup and apply animation in the UI. You can use it to programatically pickup and apply animation from one shape to another. Note you cannot pickup and apply the animation to same shape. It will not duplicate the animation in that case. Nor will it copy animations which are already applied to the shape.

ActivePresentation.Slides(1).Shapes(1).PickupAnimation ActivePresentation.Slides(1).Shapes(2).ApplyAnimation

ConvertTextToSmartArt: A new method which can be used to convert a autoshape into a representative smartart. The original shape gets replaced with the new smartart shape. It uses the smartart layout that you specified and will match the dimensions of the original autoshape.

Call ActivePresentation.Slides(1).Shapes(1).ConvertTextToSmartArt(Application.SmartArtLayouts(3))

 
 


Copyright 1999-2018 (c) Shyam Pillai. All rights reserved.