ActionSetting.Action property (PowerPoint)

Returns or sets the type of action that will occur when the specified shape is clicked or the mouse pointer is positioned over the shape during a slide show. Read/write.

Syntax

expression.Action

expression A variable that represents an ActionSetting object.

Return value

Long

Remarks

The Action property value can be one of the PpActionType constants.

Use the Action property in conjunction with other properties of the ActionSetting object, as shown in the following table.

If you set the Action property to this value Use this property To do this
ppActionHyperlink Hyperlink Set properties for the hyperlink that will be followed in response to a mouse action on the shape during a slide show.
ppActionRunProgram Run Return or set the name of the program to run in response to a mouse action on the shape during a slide show.
ppActionRunMacro Run Return or set the name of the macro to run in response to a mouse action on the shape during a slide show.
ppActionOLEVerb ActionVerb Set the OLE verb that will be invoked in response to a mouse action on the shape during a slide show.
ppActionNamedSlideShow SlideShowName Set the name of the custom slide show that will run in response to a mouse action on the shape during a slide show.

Example

This example sets shape three (an OLE object) on slide one in the active presentation to be played when the mouse passes over it during a slide show.

With ActivePresentation.Slides(1) _
    .Shapes(3).ActionSettings(ppMouseOver)

        .ActionVerb = "Play"
        .Action = ppActionOLEVerb

End With

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.