|
Sub main()
Dim start, pastTime
ActivePresentation.SlideMaster.HeadersFooters.Footer.Text = "00:00:00"
start = Now
ActivePresentation.SlideShowSettings.Run
pastTime = Format(Now - start, "hh:mm:ss")
Do While pastTime < "00:00:10"
pastTime = Format(Now - start, "hh:mm:ss")
Sleep 1000
ActivePresentation.SlideMaster.HeadersFooters.Footer.Text = pastTime
' SlideShowWindows(Index:=1).View.Next
DoEvents ' 将控制让给其他程序。
Loop
SlideShowWindows(Index:=1).View.Exit
End Sub
大家拷贝到ppt_vba中就能运行,但是我放映时候为什么很难翻页?
恳请高手指点! |
|