VB   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了如何用vb播放幻灯片大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何让幻灯片在vb的框架里播放


'Microsoft PowerPoint 9.0(Office 2000的,如果是97则是8.0) Object Library)

''Microsoft PowerPoint 11.0(Office 2003) Object Library)


Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) '延时API声明

Private Sub Form_Load()
Dim ppt As New PowerPoint.Application
Dim pres As Presentation

ppt.Visible = True
Set pres = ppt.Presentations.Open(App.path & "/Test.ppt") '填入你的文件名
With pres.SlideShowSetTings
.Run
While pres.SlideShowWindow.View.State <> ppSlideShowDone
ppt.SlideShowWindows(1).View.Next
Sleep 1000'填入延迟的时间调整快慢(毫秒)

WendEnd Withpres.Closeppt.QuitSet pres = NothingSet ppt = Nothingend Sub

大佬总结

以上是大佬教程为你收集整理的如何用vb播放幻灯片全部内容,希望文章能够帮你解决如何用vb播放幻灯片所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。