Partager via


Timing.Speed Property (PowerPoint)

Returns or sets the speed, in seconds, of the specified animation. Read/write.

Syntax

expression .Speed

expression A variable that represents a Timing object.

Return Value

Single

Example

This example sets the animation for the main sequence to reverse and sets the speed to one second.

Sub AnimPoints()

    Dim tmlAnim As TimeLine

    Dim spdAnim As Timing



    Set tmlAnim = ActivePresentation.Slides(1).TimeLine

    Set spdAnim = tlnAnim.MainSequence(1).Timing

    With spdAnim

        .AutoReverse = msoTrue

        .Speed = 1

    End With

End Sub

See Also

Concepts

Timing Object

Timing Object Members