Hi, I am trying to create VBA code which opens a powerpoint application, runs a specific powerpoint slideshow, then closes the slideshow, but leaves powerpoint open in the background. The code I have so far is:
This works, but it closes the powerpoint application, not only the slide show.
I have also tried this code:
This doesn't even start the slide show as I get a "Compile error: User defined type not defined" for
I have also tried combining elements of the two like this:
Dim PPApp As PowerPoint.Application
This opens and runs, but will not close, as I get the error
For the "PPPres.Close" command. I have also tries "PPPres.Presentations.Close" and:
Run-time error '438': Object doesn't support this property or method
but all with the same result. I can't think of any alternatives myself, so I need some genius help here.
Any help with this will be greatly appreciated!