G
Guest
Hi
I am trying to translate an object on to slide from one point(w.r.t percentage of screen Width ,height as given for powerpoint) to another
this is the code given on microsoft site
But its not working proporly.Object doesn't stop at all
Even if i add duration it doesn't effect
It seems that motioneffect is not working properly in powerpoint .I am Using powerpoint 200
It works for scaling and rotation
Dim shpNew As Shap
Dim effNew As Effec
Dim aniMotion As AnimationBehavio
shpNew = m_objPpt.ActivePresentation.Slides(1).Shapes.AddShape(Microsoft.Office.Core.MsoAutoShapeType.msoShape5pointStar, Left:=0, Top:=0, Width:=100, Height:=100
effNew = m_objPpt.ActivePresentation.Slides(1).TimeLine.MainSequence.AddEffect(Shape:=shpNew, effectId:=PowerPoint.MsoAnimEffect.msoAnimEffectCustom,
Trigger:=PowerPoint.MsoAnimTriggerType.msoAnimTriggerWithPrevious
aniMotion = effNew.Behaviors.Add(MsoAnimType.msoAnimTypeMotion
effNew.Timing.Speed = 0.0
With aniMotion.MotionEffec
.FromX =
.FromY =
.ToX = 5
.ToY = 5
End Wit
Help me out
Thanks in advance.
I am trying to translate an object on to slide from one point(w.r.t percentage of screen Width ,height as given for powerpoint) to another
this is the code given on microsoft site
But its not working proporly.Object doesn't stop at all
Even if i add duration it doesn't effect
It seems that motioneffect is not working properly in powerpoint .I am Using powerpoint 200
It works for scaling and rotation
Dim shpNew As Shap
Dim effNew As Effec
Dim aniMotion As AnimationBehavio
shpNew = m_objPpt.ActivePresentation.Slides(1).Shapes.AddShape(Microsoft.Office.Core.MsoAutoShapeType.msoShape5pointStar, Left:=0, Top:=0, Width:=100, Height:=100
effNew = m_objPpt.ActivePresentation.Slides(1).TimeLine.MainSequence.AddEffect(Shape:=shpNew, effectId:=PowerPoint.MsoAnimEffect.msoAnimEffectCustom,
Trigger:=PowerPoint.MsoAnimTriggerType.msoAnimTriggerWithPrevious
aniMotion = effNew.Behaviors.Add(MsoAnimType.msoAnimTypeMotion
effNew.Timing.Speed = 0.0
With aniMotion.MotionEffec
.FromX =
.FromY =
.ToX = 5
.ToY = 5
End Wit
Help me out
Thanks in advance.