SlideShowSettings.Run Method

Runs a slide show of the specified presentation. Returns a SlideShowWindow object.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function Run As SlideShowWindow
'Usage
Dim instance As SlideShowSettings
Dim returnValue As SlideShowWindow

returnValue = instance.Run()
SlideShowWindow Run()

Return Value

Type: Microsoft.Office.Interop.PowerPoint.SlideShowWindow
SlideShowWindow

Remarks

To run a custom slide show, set the RangeType property to ppShowNamedSlideShow, and set the SlideShowName property to the name of the custom show you want to run.

Examples

This example starts a full-screen slide show of the active presentation, with shortcut keys disabled.

With ActivePresentation.SlideShowSettings

    .ShowType = ppShowSpeaker

    .Run.View.AcceleratorsEnabled = False

End With

This example runs the named slide show "Quick Show."

With ActivePresentation.SlideShowSettings

    .RangeType = ppShowNamedSlideShow

    .SlideShowName = "Quick Show"

    .RunEnd With

See Also

Reference

SlideShowSettings Interface

SlideShowSettings Members

Microsoft.Office.Interop.PowerPoint Namespace