Results 1 to 7 of 7

Thread: Animation by Paragraph

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Animation by Paragraph

    Dear all,

    I've been racking my brains for a while now and I have no idea why this simple code doesn't work. Powerpoint Plus 2019.

    I want VBA to apply Fade in to a bullet list in a textbox or placeholder, each line appearing by Paragraph on click anywhere on slide. Code seems fine, but the last line triggers an error: "Compile error: Method or Data member not found".

    Any help appreciated!! Thanks in advance

    Sub ApplyTextAnimation()
    Dim slide As slide
    Dim shape As shape
    Dim effect As effect
    Set slide = ActivePresentation.Slides(1)
    Set shape = slide.Shapes(1)
    Set effect = slide.TimeLine.MainSequence.AddEffect(shape:=shape, effectId:=msoAnimEffectFade, trigger:=msoAnimTriggerOnPageClick)
    effect.TextUnitEffect = msoAnimTextUnitByParagraph
    End Sub
    Last edited by Aussiebear; 09-23-2023 at 04:25 AM. Reason: Added code tags to supplied code

Posting Permissions

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