Open presentation in slideshow view, from Access via VBA

D

Dale Fye

I've got an Access application I'm developing to control a Powerpoint
presentation.

I've figured out how to open PPT, select a presentation, and view that
presentation in design view, but have not figured out how to switch the view
to SlideShow.

Assuming I have application (oPPT) and presentation (oPres) objects, what
VBA do I need to change the view of PPT from design view to slideshow view.
 
D

Dale Fye

John,

Yes, but now the line in my code which selects which slide to display in
the design view (see below) is generating an error.

oPres.Slides(mlngSlideIndex + 1).Select

Runtime error -2147188160 (80048240)
Slide (unknown member): invalid request. This view does not support selection

Which generates several new questions.

1. How do I determine whether the presentation is showing in design or
slide show view?

2.. How do I close the slideshow view?

3. How do I manipulate the slide that is shown in the slideshow?
 
D

Dale Fye

OK, I figured out that I could create a SlideShowWindow object (oSSW) from
the .Run command. And when this error comes up, I've got an error handler
that uses:

oSSW.view.gotoslide ##

But is there a more elegant way to determine this?

I still have not figured out how to close the SlideShowWindow via code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top