Class SlideShowView (PowerPoint VBA)

The class SlideShowView represents the view in a slide show window.

Set

To use a SlideShowView class variable it first needs to be instantiated, for example

Dim ssv as SlideShowView
Set ssv = SlideShowWindows(1).View

SlideShowView class variables can be set using the SlideShowWindow.View procedure.

Themes

Some procedures in this class have been grouped together in themes and are described on separate theme pages

Enable with its procedures AcceleratorsEnabled and LaserPointerEnabled
Display/Show with its procedures CurrentShowPosition, EndNamedShow, GotoNamedShow, IsNamedShow and SlideShowName
Format with its procedures MediaControlsHeight, MediaControlsVisible, MediaControlsWidth and PointerColor

Methods

Other Methods

DrawLine - Draws a line in the specified slide show view.

SlideShowWindows(1).View.DrawLine BeginX:=5, BeginY:=5, EndX:=250, EndY:=250

GotoSlide - Switches to the specified slide during a slide show. You can specify whether you want the animation effects to be rerun.

Dim lngIndex As Long: lngIndex = 3 
SlideShowWindows(1).View.GotoSlide Index:=lngIndex

Properties

AdvanceMode returns a value that indicates how the slide show in the specified view advances.

Dim pssAdvanceMode As PpSlideShowAdvanceMode
pssAdvanceMode = SlideShowWindows(1).View.AdvanceMode

LastSlideViewed returns a Slide object that represents the slide viewed immediately before the current slide in the specified slide show view.

Dim sldLastSlideViewed As Slide
Set sldLastSlideViewed = SlideShowWindows(1).View.LastSlideViewed

MediaControlsLeft returns the distance, in points, from the left edge of the media control bounding box to the left edge of the Slide.

Dim sngMediaControlsLeft As Single
sngMediaControlsLeft = SlideShowWindows(1).View.MediaControlsLeft

MediaControlsTop returns the distance, in points, from the top edge of the media control bounding box to the top edge of the Slide object.

Dim sngMediaControlsTop As Single
sngMediaControlsTop = SlideShowWindows(1).View.MediaControlsTop

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = SlideShowWindows(1).View.Parent

PointerType returns or sets the type of pointer used in the slide show.

SlideShowWindows(1).View.PointerType = ppSlideShowPointerAlwaysHidden

PresentationElapsedTime returns the number of seconds that have elapsed since the beginning of the specified slide show.

Dim sngPresentationElapsedTime As Single
sngPresentationElapsedTime = SlideShowWindows(1).View.PresentationElapsedTime

Slide returns a Slide object that represents the slide that's currently displayed in the specified slide show window view.

Dim sldSlide As Slide
Set sldSlide = SlideShowWindows(1).View.Slide

SlideElapsedTime returns the number of seconds that the current slide has been displayed.

SlideShowWindows(1).View.SlideElapsedTime =

State returns or sets the state of the slide show.

SlideShowWindows(1).View.State = ppSlideShowBlackScreen

Zoom returns the zoom setting of the specified slide show window view as a percentage of normal size.

Dim lngZoom As Long
lngZoom = SlideShowWindows(1).View.Zoom