ActionSettings.Item method (PowerPoint)
Returns a single action setting from the specified ActionSettings collection.
Syntax
expression.Item (Index)
expression A variable that represents an ActionSettings object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Required | PpMouseActivation | The action setting for a MouseClick or MouseOver event. |
Return value
ActionSetting
Remarks
The Index parameter value can be one of these PpMouseActivation constants.
Constant | Description |
---|---|
ppMouseClick | The action setting for when the user clicks the shape. |
ppMouseOver | The action setting for when the mouse pointer is positioned over the specified shape. |
The Item method is the default member for a collection. For example, the following two lines of code are equivalent:
ActivePresentation.Slides.Item(1)
ActivePresentation.Slides(1)
For more information about returning a single member of a collection, see Returning an object from a collection.
Example
This example sets shape three on slide one to play the sound of applause and uses the AnimateAction property to specify that the shape's color is to be momentarily inverted when the shape is clicked during a slide show.
With ActivePresentation.Slides.Item(1).Shapes _
.Item(3).ActionSettings.Item(ppMouseClick)
.SoundEffect.Name = "applause"
.AnimateAction = True
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for