Consulting

Results 1 to 4 of 4

Thread: Animate star through shapes outline/border in powerpoint vba

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned VBAX Regular
    Joined
    Sep 2020
    Posts
    15
    Location

    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 = ????
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •