PlayOnEntry Property

Microsoft PowerPoint Visual Basic

PlayOnEntry Property

       

Determines whether the specified movie or sound is played automatically when it's animated. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified movie or sound is played automatically when it's animated.

Remarks

Setting this property to msoTrue sets the Animate property of the AnimationSettings object to msoTrue. Setting the Animate property to msoFalse automatically sets the PlayOnEntry property to msoFalse.

Use the ActionVerb property to set the verb that will be invoked when the media clip is animated.

Example

This example specifies that shape three on slide one in the active presentation will be played automatically when it's animated. Shape three must be a sound or movie object.

Set OLEobj = ActivePresentation.Slides(1).Shapes(3)
OLEobj.AnimationSettings.PlaySettings.PlayOnEntry = msoTrue