how to check custom animation programatically

H

hellokareem

how i can check custom animation exist or not in particular
shape(through programattically)
 
J

John Wilson

something like:

Sub check()
If ActiveWindow.Selection.ShapeRange.AnimationSettings.Animate _
= msoTrue Then MsgBox ("yes it has") Else MsgBox ("no it hasn't")
End Sub

Note this is the bare bones and not that robust!
 
S

Shyam Pillai

Depends on the version of PowerPoint. The mechanism to check if animation is
present or not is different
- 97/2000
- 2002 and later

Which version are you targeting?
 
H

hellokareem

actually i want to check all version 97-200 as well as 2002-03..
in 2002-03 how get timeline object from slide?plz help me ASAP
 
H

hellokareem

Many thanks for fast replay..i enumerate all shpe's
animatinsettings,but which propery of 'AnimationSetting' we want to
check?i mean getAnimate,getEntryeffect etc.. somany properties there
,but couldn't findout any difference ,if shape with and without
animation.
if i am wrong plz correct me..
can u tell me any way to trap before transition event?i want to event
before going next slide,actually nextslide event only getting after
reached nextslide...any help really very useful to me..
 
S

Shyam Pillai

The Animate property will tell you if the shape is animated or not, you will
need to read the rest of the properties to arrive at the animation
information pertaining to type of animation, speed, timing, order etc.

Please read the programming section of the PowerPoint FAQ
http://www.pptfaq.com for information pertaining to PowerPoint events
handling.
 
Top