Ich versuche, eine Excel-Datei in einer PowerPoint-Präsentation zu öffnen. dies ist mein Code:Wie öffne ich Excel auf Vordergrund in VBA mit Powerpoint
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
die Excel-Datei im Hintergrund öffnen. das muss im Vordergrund stehen.
kann mir jemand helfen?
Sollte nicht End Sub statt End Function sein? Der Code öffnet die Arbeitsmappe über der Präsentation. Was ist das Problem? – sktneer