0
votes

I'm new in VBA Powerpoint. I wrote a macro (This macro reads out-loud the content of a textbox in active slide). I want this macro executed when I go to next slide while I am making a live powerpoint presentation. How can I ensure this macro run when I click for the next-slide?

1
Please add any code that you have triedRN92
Why not use the normal method to play a sound when a slide emerges? No Macro needed: support.office.com/en-us/article/…pgSystemTester

1 Answers

0
votes

The events aren't easy to find in Powerpoint, but this document might help you.

Here's some starter code using the event OnSlideshowPageChange

Sub OnSlideShowPageChange()
    Dim i As Long
    i = ActivePresentation.SlideShowWindow.View.CurrentShowPosition

    Select Case i

        Case 1
            'do something for page one

        Case 2
            'do something for page two

        Case 3
            'do something for page three... etc.


    End Select


End Sub