-3
A
回答
0
在這些文章中檢查一些指針:
How to automate PowerPoint by using Visual Basic - Microsoft Support Microsoft Kb kb/555191
Automating a Powerpoint Presentation using VBA
代碼的基礎是這樣的:
Dim oPPt, oPPs
Set oPPt = CreateObject("PowerPoint.application")
oPPt.Visible = True
' Assuming your adding it to an existing powerpoint : '
Dim sPPtFile: sPPtFile = "C:\yourPowerpoint.pptx"
Set oPPs = oPPt.Presentations.Open(sPPtFile)
Dim oSlide
Set oSlide = oPPs.Slides.Add(1, 2)
oSlide.Shapes(1).TextFrame.TextRange.Text = "My first slide "
oPPTFile.SaveAs "C:\yourPowerpointUpdated.pptx"
oPPt.quit
set oPPt = nothing
相關問題
- 1. 在JavaScript幻燈片上添加文本右圖幻燈片
- 2. R在幻燈片中生成幻燈片幻燈片
- 3. 使用Javascript添加淡入幻燈片簡單幻燈片
- 4. Java腳本幻燈片放映(添加幻燈片效果)
- 5. 幻燈片放映幻燈片,其他幻燈片放映幻燈片
- 6. 幻燈片中的幻燈片?
- 7. 將圖片添加到幻燈片幻燈片並讓他們自動填充幻燈片
- 8. 使用COM和PHP合併/創建PowerPoint幻燈片幻燈片
- 9. Javascript幻燈片「空白幻燈片」?
- 10. 放映幻燈片內幻燈片
- 11. 暫停JS幻燈片幻燈片
- 12. c動畫幻燈片幻燈片#
- 13. 幻燈片列表幻燈片列表
- 14. 幻燈片,幻燈片效果
- 15. 圖像幻燈片的JavaScript幻燈片
- 16. 點擊跳過幻燈片幻燈片
- 17. 將幻燈片更改爲幻燈片
- 18. 添加標題幻燈片圖像RMarkdown與reveal.js幻燈片
- 19. jQuery的幻燈片添加具有圖像幻燈片容器
- 20. 添加跟蹤到幻燈片,查看有多少幻燈片
- 21. 特定的幻燈片添加到幻燈片
- 22. 添加空白幻燈片
- 23. 添加幻燈片UNO API
- 24. 添加幻燈片到Tictail
- 25. jquery幻燈片ALT文本
- 26. JavaScript文本幻燈片
- 27. 照片幻燈片
- 28. 在幻燈片更改上添加當前幻燈片正文類
- 29. 使用python-pptx將幻燈片標題添加到幻燈片上
- 30. 幻燈片UITableViewCell