Skip to content

Latest commit

 

History

History
66 lines (34 loc) · 2 KB

PowerPoint.Application.SlideShowOnPrevious.md

File metadata and controls

66 lines (34 loc) · 2 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.SlideShowOnPrevious event (PowerPoint)
vbapp10.chm621024
vbapp10.chm621024
PowerPoint.Application.SlideShowOnPrevious
466a5363-047b-f107-011b-6450db6a5f31
06/08/2017
medium

Application.SlideShowOnPrevious event (PowerPoint)

Occurs when the user clicks Previous to move within the current slide.

Syntax

expression. SlideShowOnPrevious(Wn)

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
Wn Required SlideShowWindow The active slideshow window.

Remarks

To access Application object events, declare a variable to represent the Application object in the General Declarations section of your code. Then set the variable equal to the Application object for which you want to access events.

For more information about using events with the Microsoft PowerPoint Application object, see How to: Use Events with the Application Object.

The SlideShowOnPrevious event does not fire when users click Previous to move from one slide to the previous one, but rather only when they click Previous to move within a given slide, for example to rerun the previous animation on the slide.

Example

This example displays a message every time a user clicks Previous to move with the current slide. The example assumes that you have already declared an Application object named App in the General Declarations section of your code, using the WithEvents keyword.

Private Sub App_SlideShowOnPrevious(ByVal Wn As SlideShowWindow)



    Debug.Print "User clicked Previous to move within the current slide."

        

End Sub

See also

Application Object

[!includeSupport and feedback]