programmatically start animation

C

cyrille

Hi all,

After a search trip over Internet,
I think that it is not possible to start a specific shape animation with VBA.
The only way is to use '.View.Next' command, so animations have to be sequencially played.

We cannot simulate a mouse click on a shape from VBA to start a specific shape's animation ?

thanks for you light ;o)
cyrille
 
P

PPTMagician

Hi,

What exactly are you trying to do? PPT 2002 and higher offers several
methods for stating and controlling animations. Let us know.

Glenna
 
C

cyrille

PPTMagician said:
Hi,

What exactly are you trying to do? PPT 2002 and higher offers several
methods for stating and controlling animations. Let us know.

with pleasure ;o)


For example, I've got 2 shapes 'Rectangle', each of them has a animation.

I would like to choice from VBA if I start animation of first rectangle or second.

if( foo = 1 )then
play animation for rectangle 1
else
play animation for rectangle 2
end if

Am I clearer ?

thanks for your help,
cyrille
 
C

cyrille

cyrille said:
with pleasure ;o)


For example, I've got 2 shapes 'Rectangle', each of them has a animation.

I would like to choice from VBA if I start animation of first rectangle
or second.

if( foo = 1 )then
play animation for rectangle 1
else
play animation for rectangle 2
end if

Am I clearer ?

Hoops, forgot to say that I'm using PPT 2003

and precision on my pseudo code example :

if( foo = 1 )then
play animation for rectangle 1, like clicking on it
else
play animation for rectangle 2, like clicking on it
end if
 
D

David M. Marcovitz

Glenna,

I'm not clear how you would do anything conditionally without the VBA.
Certainly, a click on one box can trigger one animation, and a click on
another box can trigger another animation, but how would a click on a single
box be able to do either one animation or another based on some condition?
I'm pretty sure she really needs VBA to do what she wants to do, but I
couldn't find the right VBA command to do it. Shyam?????? Steve??????

I really don't mean to be contrary, Glenna. I feel like I'm becoming the
VBA police. I love your creative solutions, and I'm really all for avoiding
VBA if it is not necessary, but I think it is necessary in this case. I hope
you will forgive me.

--David

David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
C

cyrille

PPTMagician said:
Hi,

You can use triggers to do that without using VB. See Kathy Jacobs tutorial
at:
http://www.powerpointanswers.com/article1056.html

Glenna

be I have to use VBA, I know how it is very easy with 'Action' on mouse click.

I had a look on msdn and in google's groups, but nothing about triggering/starting animation from VBA ...
I've only found explication on how to create animation,
but noting about starting them out of a sequence triggered by a click or internal ppt stuff.

could you or someone else dig this subject ?

Thanks a lot,
cyrille
 
P

PPTMagician

Ah Ha! She says as the light bulb goes off. You're correct, using triggers
the conditional statement would have to be:

If Box 1 - this animation
If Box 2 - that animation

No Else statement would be possible without VB.

Got any good VB ideas that start an animation? Maybe the If/Else could be
made to jump to identical slides that run the specified animation
automatically? Thereby giving the perception that the choice started the
animation...

BTW: I'm not adverse to VB. I'm learning it and loving it right now... :)
I just like trying to figure out how PPT native tools can do things before
trying the VB solution.

<G>
 
C

cyrille

PPTMagician said:
Ah Ha! She says as the light bulb goes off. You're correct, using triggers
the conditional statement would have to be:

If Box 1 - this animation
If Box 2 - that animation

No Else statement would be possible without VB.

but I don't want to use any mouse or keyboard !!!
only driving PPT via VBA ... So, I need to start, at least, one animation ...

cyrille
 
S

Shyam Pillai

The only way I've succeeded in triggering an animation out of sequence in
PPT 2002 or later is by assigning triggered animation and then using API
calls to mimic a mouse-click on the triggering shape during the slideshow
via VBA.


--
Regards
Shyam Pillai

Toolbox: http://www.mvps.org/skp/toolbox/
 
C

cyrille

Shyam said:
The only way I've succeeded in triggering an animation out of sequence in
PPT 2002 or later is by assigning triggered animation and then using API
calls to mimic a mouse-click on the triggering shape during the slideshow
via VBA.

Thanks a lot,
it's that I think to after searching long time.

So, I'll do that ...

Has someone got the method already tested ???

cyrille
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top