• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

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
0
hindersaliva
Asked:
hindersaliva
  • 2
  • 2
1 Solution
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now