我在powerpoint中有以下VBA代码:
Dim xlApp As Object
Dim sourceWB As Workbook
Dim sourceWS As Worksheet
Dim chartObj As ChartObject
Set xlApp = CreateObject("Excel.Application")
With xlApp
.Visible = True
.EnableEvents = False
End With
Set sourceWB = xlApp.Workbooks.Open("path\\file.xlsx", , False, , , , , , , True)
Set sourceWS = sourceWB.Worksheets("ChartDump")
Set chartObj = sourceWS.ChartObjects(1)
如何将chartObj
添加到我的某个幻灯片中?
工作表中的excel文档中有一个名为" ChartDump"
的图表