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

ActionSetting.Action Property (PowerPoint)

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

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 following PpActionType constants.

|| |:-----| |ppActionEndShow| |ppActionFirstSlide| |ppActionHyperlink| |ppActionLastSlide| |ppActionLastSlideViewed| |ppActionMixed| |ppActionNamedSlideShow| |ppActionNextSlide| |ppActionNone| |ppActionOLEVerb| |ppActionPlay| |ppActionPreviousSlide| |ppActionRunMacro| |ppActionRunProgram| You can 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 valueUse this propertyTo do this
ppActionHyperlinkHyperlinkSet properties for the hyperlink that will be followed in response to a mouse action on the shape during a slide show.
ppActionRunProgramRunReturn or set the name of the program to run in response to a mouse action on the shape during a slide show.
ppActionRunMacroRunReturn or set the name of the macro to run in response to a mouse action on the shape during a slide show.
ppActionOLEVerbActionVerbSet the OLE verb that will be invoked in response to a mouse action on the shape during a slide show.
ppActionNamedSlideShowSlideShowNameSet 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

See also

Concepts

ActionSetting Object

© 2018 Microsoft