Share via


ActionSetting Object


Aa158948.parchild(en-us,office.10).gifActionSettings (ActionSetting)
Aa158948.space(en-us,office.10).gifAa158948.parmult(en-us,office.10).gifHyperlink
Aa158948.space(en-us,office.10).gifAa158948.parchild(en-us,office.10).gifSoundEffect

Contains information about how the specified shape or text range reacts to mouse actions during a slide show. The ActionSetting object is a member of the ActionSettings collection. The ActionSettings collection contains one ActionSetting object that represents how the specified object reacts when the user clicks it during a slide show and one ActionSetting object that represents how the specified object reacts when the user moves the mouse pointer over it during a slide show.

Using the ActionSetting Object

Use ActionSettings(index), where index is the either ppMouseClick or ppMouseOver, to return a single ActionSetting object. The following example sets the mouse-click action for the text in the third shape on slide one in the active presentation to an Internet link.

  With ActivePresentation.Slides(1).Shapes(3) _
        .TextFrame.TextRange.ActionSettings(ppMouseClick)
    .Action = ppActionHyperlink
    .Hyperlink.Address = "http://www.microsoft.com"
End With

Remarks

If you've set properties of the ActionSetting object that don't seem to be taking effect, make sure that you've set the Action property to the appropriate value.