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. Can be one of the following PpActionType constants. Read/write Long.
| 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 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