ActionSetting.ShowAndReturn property (PowerPoint)

Determines if and under what circumstances Microsoft PowerPoint returns to the initiating slide show. Read/write.

Syntax

expression. ShowAndReturn

expression A variable that represents an ActionSetting object.

Return value

MsoTriState

Remarks

The value of the ShowAndReturn property can be one of these MsoTriState constants.

Constant Description
msoFalse Default. PowerPoint doesn't return to the initiating slide show from the deactivated custom slide show.
msoTrue PowerPoint returns to the initiating slide show from a deactivated custom slide show that was activated by using the ActionSetting object of the initiating presentation.

Example

This example sets the mouse click action for shape five on slide one in the active presentation to show the custom slide show named "techtalk." When the custom slide show is over, it automatically returns to the initiating presentation, in the state before the mouse click occurred.

With ActivePresentation.Slides(1).Shapes(5).ActionSettings(ppMouseClick)

    .Action = ppActionNamedSlideShow

    .SlideShowName = "techtalk"

    .ShowandReturn = msoTrue

End With

See also

ActionSetting Object

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.