text 通过Excel VBA.bas调用PowerPoint

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 通过Excel VBA.bas调用PowerPoint相关的知识,希望对你有一定的参考价值。

'open existing PowerPoint Application (Excel VBA)
'-------------------------------------------------------------------------------------------------
Dim PPApp As PowerPoint.Application
Dim PPpres As PowerPoint.Presentation

Set PPApp = New PowerPoint.Application 'creates a PP application and makes it visible
PPApp.Visible = True

'Open the presentation you wish to copy to
Set PPpres = PPApp.Presentations.Open("C:\Users\Angelina\Documents\Import-Export Balance.pptm")

'----------------------------------------------------------------------------------------------------
'call PowerPoint application that's already open (Excel VBA)

Dim PPApp As PowerPoint.Application
Set PPApp = GetObject(, "Powerpoint.Application") 'use if you are planning on having your ppt open

Dim PPpres As PowerPoint.Presentation
Set PPpres = PPApp.ActivePresentation
        

以上是关于text 通过Excel VBA.bas调用PowerPoint的主要内容,如果未能解决你的问题,请参考以下文章

ABAP学习:操作EXCEL

LeetCode50. Pow(x, n)

使用Math.Pow计算月度贷款

PHP Excel&ŧ039;s PMT()函数

如何在VB中调用EXCEL表格数据?

关于函数调用的基础知识