ActionSetting.AnimateAction property (PowerPoint)

Specifies whether the color of the specified shape is momentarily inverted when the specified mouse action occurs. Read/write.

Syntax

expression. AnimateAction

expression A variable that represents an ActionSetting object.

Return value

MsoTriState

Remarks

The value of the AnimateAction property can be one of these MsoTriState constants.

Constant Description
msoFalse The color of the specified shape is not momentarily inverted when the specified mouse action occurs.
msoTrue The color of the specified shape is momentarily inverted when the specified mouse action occurs.

Example

This example sets shape three on slide one in the active presentation to play the sound of applause and to momentarily invert its color when it is clicked during a slide show.

With ActivePresentation.Slides(1) _
    .Shapes(3).ActionSettings(ppMouseClick)
        .SoundEffect.Name = "applause"
        .AnimateAction = msoTrue
End With

See also

ActionSetting Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.