Skip to content

Latest commit

 

History

History
80 lines (43 loc) · 1.77 KB

PowerPoint.Application.SlideShowNextBuild.md

File metadata and controls

80 lines (43 loc) · 1.77 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.SlideShowNextBuild event (PowerPoint)
vbapp10.chm621012
vbapp10.chm621012
PowerPoint.Application.SlideShowNextBuild
63919ea5-57e4-853a-0e5a-94e1126cbfbf
06/08/2017
medium

Application.SlideShowNextBuild event (PowerPoint)

Occurs upon mouse-click or timing animation, but before the animated object becomes visible. .

Syntax

expression. SlideShowNextBuild(Wn)

expression A variable that represents an Application object.

Parameters

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

Remarks

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

Example

If the current shape on slide one is a movie, this example plays the movie continuously until stopped manually by the presenter. This code is designed to be used with the second SlideShowNextSlide event example.

Private Sub App_SlideShowNextBuild(ByVal Wn As SlideShowWindow)

    If EvtCounter <> 0 Then

        With ActivePresentation.Slides(1) _
                .Shapes(shpAnimArray(2, EvtCounter))

            If .Type =msoMedia Then

                If .MediaType = ppMediaTypeMovie

                    .AnimationSettings.PlaySettings _
                        .LoopUntilStopped

                End If

            End If

        End With

    End If

	EvtCounter = EvtCounter + 1

End Sub

	

See also

Application Object

[!includeSupport and feedback]