PowerPoint VBA shape timing duration

758 Views Asked by At

I need help changing the duration time of an existing shape in a PowerPoint slide using vba. All I can find is changing the duration of a new effect added. I need to change the duration time of an existing shape with a defined timing duration.

1

There are 1 best solutions below

3
John Korchok On

This is the general idea, please customize for your code:

Sub SetTiming()
    Dim EffAnim As Effect
    Set EffAnim = ActivePresentation.Slides(1).TimeLine.MainSequence.Item(1)
    EffAnim.Timing.Duration = 5
End Sub