Dear all,

I am trying to create a PowerPoint presentation from some Excel data (basic interop stuff). Everything works fine, however, for large presentations, I can see all the changes in PowerPoint happening live. Therefore, I've tried to keep PowerPoint hidden until the macro is finished. I've used the following code:

'...
        Set appPowerPoint = New PowerPoint.Application
        Set pptTemplatePresentation = appPowerPoint.Presentations.Open(.SelectedItems(1), WithWindow:=msoFalse)
During execution of the second line, I get the following error from the PowerPoint application (error handling in Excel VBA is not triggered):

Error.png

This only happens when using WithWindow:=msoFalse.

Does anyone know how to solve this?

Thanks heaps in advance!

Best,
Philipp