1 Attachment(s)
Animate star through shapes outline/border in powerpoint vba
Sir,
I need some help.
I want to animate a star through any powerpoint shapes(here decagon) outline/border using vba code.
I make an animation for referance & giving custom path through outline/border of the decagon shape manually.
Dim effNew As Effect
Dim aniMotion As AnimationBehavior
' Add custom effect to the shape
Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _
.AddEffect(Shape:=Star5Points1, effectId:=msoAnimEffectCustom, _
Trigger:=msoAnimTriggerWithPrevious)
' Add Motion effect
Set aniMotion = effNew.Behaviors.Add(msoAnimTypeMotion)
' Set Motion Path as custom path ie outline of shape
aniMotion.MotionEffect.Path = string
I cannot configure this "aniMotion.MotionEffect.Path = string"
section ie string = ????