Reputation: 1
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?
Upvotes: 0
Views: 1303
Reputation: 9917
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
Upvotes: 0