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
hindersalivaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JSRWilsonCommented:
Are they the only shapes on the slide?
If not can the shapes be selected to indicate they need animating?

In the meantime have a look at this demo.
animate.ppt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hindersalivaAuthor Commented:
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.
0
JSRWilsonCommented:
You may be able to add then to the array without selecting them. This would be a good move.
0
hindersalivaAuthor Commented:
Yes I will. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft PowerPoint

From novice to tech pro — start learning today.