Skip to content

Files

Latest commit

 

History

History
80 lines (44 loc) · 2.06 KB

PowerPoint.SlideShowView.GotoSlide.md

File metadata and controls

80 lines (44 loc) · 2.06 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SlideShowView.GotoSlide method (PowerPoint)
vbapp10.chm513021
vbapp10.chm513021
PowerPoint.SlideShowView.GotoSlide
f733f46d-a632-02cb-3dbf-f29122fe347a
06/08/2017
medium

SlideShowView.GotoSlide method (PowerPoint)

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

Syntax

expression. GotoSlide( _Index_, _ResetSlide_ )

expression A variable that represents a SlideShowView object.

Parameters

Name Required/Optional Data type Description
Index Required Integer The number of the slide to switch to.
ResetSlide Optional MsoTriState Whether animation effects should be rerun when returning to the first slide. See Remarks for more information.

Remarks

The value of the ResetSlide parameter can be one of these MsoTriState constants. The default is msoTrue.

msoFalse
msoTrue

If you switch from one slide to another during a slide show with ResetSlide set to msoFalse, when you return to the first slide, its animation picks up where it left off. If you switch from one slide to another with ResetSlide set to msoTrue, when you return to the first slide, its entire animation starts over.

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

See also

SlideShowView Object

[!includeSupport and feedback]