我想在powerpoint演示文稿中打开excel文件。 这是我的代码:如何在VBA中使用Powerpoint在前台打开excel
Sub diversestickersKoole()
Dim xlApp As Object
Dim xlWorkBook As Object
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlWorkBook = xlApp.Workbooks.Open("V:\Oliedocs\Koole\Stickers Scheepstanks Koole.xltm", True, False)
Set xlApp = Nothing
Set xlWorkBook = Nothing
End Sub
excel文件在后台打开。这必须在前台。
有人可以帮助我吗?
不应该是End Sub而不是End Function?代码在演示文稿顶部打开工作簿。有什么问题? – sktneer