Table of contents
Collapse the table of content
Expand the table of content

AnimationPoint.Value Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Sets or returns the value of a property for an animation point. Read/write.


expression. Value

expression A variable that represents an AnimationPoint object.

Return Value



This example inserts three fill color animation points in the main sequence animation timeline on the first slide.

Sub BuildTimeLine()

    Dim shpFirst As Shape
    Dim effMain As Effect
    Dim tmlMain As TimeLine
    Dim aniBhvr As AnimationBehavior
    Dim aniPoint As AnimationPoint

    Set shpFirst = ActivePresentation.Slides(1).Shapes(1)
    Set tmlMain = ActivePresentation.Slides(1).TimeLine
    Set effMain = tmlMain.MainSequence.AddEffect(Shape:=shpFirst, _

    Set aniBhvr = tmlMain.MainSequence(1).Behaviors.Add _

    With aniBhvr.PropertyEffect
        .Property = msoAnimShapeFillColor
        Set aniPoint = .Points.Add
        aniPoint.Time = 0.2
        aniPoint.Value = RGB(0, 0, 0)
        Set aniPoint = .Points.Add
        aniPoint.Time = 0.5
        aniPoint.Value = RGB(0, 255, 0)
        Set aniPoint = .Points.Add
        aniPoint.Time = 1
        aniPoint.Value = RGB(0, 255, 255)
    End With

End Sub

See also


AnimationPoint Object

© 2018 Microsoft