Share via


GotoSlide Method

GotoSlide method as it applies to the View object.

Switches to the specified slide.

expression.GotoSlide(Index)

*expression   * Required. An expression that returns a View object.

Index   Required Integer. The number of the slide to switch to.

GotoSlide method as it applies to the SlideShowView object.

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

expression.GotoSlide(Index, ResetSlide)

*expression   * Required. An expression that returns a SlideShowView object.

Index   Required Integer. The number of the slide to switch to.

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue Default.

Example

This example switches from the current slide to the slide three in slide show window one. If you switch back to the current slide during the slide show, its entire animation will start over.

With SlideShowWindows(1).View
    .GotoSlide 3
End With

This example switches from the current slide to the slide three in slide show window one. If you switch back to the current slide during the slide show, its animation will pick up where it left off.

With SlideShowWindows(1).View
    .GotoSlide 3, msoFalse
End With

Applies to | SlideShowView Object | View Object

See Also | First Method | GotoNamedShow Method | Last Method | Next Method | Previous Method