Call subroutine when a specific slide loads, or on a timer

ぐ巨炮叔叔 提交于 2019-12-01 06:30:36

Use the built-in OnSlideShowPageChange event:

Public Sub OnSlideShowPageChange(ByVal Wn As SlideShowWindow)
   If Wn.View.CurrentShowPosition = 3 Then
       'Perform Updates for slide #3
   EndIf
End Sub

Edit: As kcoppock pointed out, you can put this code in any module.

Todd Main

The event SlideShowNextSlide is what you need. See How to write PowerPoint slide change to a file? for an example of how to use it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!