Exit Method
From Microsoft PowerPoint Visual Basic
Exit Method
Ends the specified slide show.
expression.Exit
expression Required. An expression that returns a SlideShowView object.
Example
This example ends the slide show that's running in slide show window one.
SlideShowWindows(1).View.Exit