Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switches to the specified slide.
Syntax
expression. GotoSlide (Index)
expression A variable that represents a View object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Index | Required | Long | The number of the slide to switch to. |
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.