title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ActionSetting.Action property (PowerPoint) |
vbapp10.chm567003 |
|
|
32ed5574-5ac0-abb7-d300-6644fc894ec1 |
06/08/2017 |
medium |
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.
expression.Action
expression A variable that represents an ActionSetting object.
Long
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. |
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
[!includeSupport and feedback]