Link to home
Start Free TrialLog in
Avatar of hindersaliva
hindersalivaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

PowerPoint 2013 Animations with VBA

Please see sample .ppt file attached.

What I am trying to achieve: On slide 1 I have several shapes. If you run the slideshow you will see that OnClick shapes will appear from Left to Right. Other shapes starting at the same X-axis position will appear WithPrevious. (slide 1 is a demo. The actual slide is as shown in slide 2)

On slide 2 I have the same shapes. I want to be able to programmatically add the OnClick and WithPrevious animations to the shapes on a slide (as described above).

Note that the shape names are not necessarily in sequential order going from Left to Right.

This may help. I will have an array that has the data from which the shapes are created. eg.
X-position of left edge | ShapeName | ColorID |  

Note: ColorID is one of 4 possible. So call it 1 to 4 (say)
The data in the array will be in the ascending 'X-position of left edge' sequence

Thanks!
Shapes-animation-1.pptx
ASKER CERTIFIED SOLUTION
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hindersaliva

ASKER

Ha ha JSRW! You are a genius on PPT VBA! It does exactly as I want. I shall study the code and adapt.

(They are not the only shapes but I can name them when they are created, so that I can select them by some prefix)

Thanks. Shall close this question. There'll be another in a few days when I come to take this to the next step.
You may be able to add then to the array without selecting them. This would be a good move.
Yes I will. Thanks.