Changing Current Slide in VBA

G

Guest

I have a presentation that periodically reads a file, and based on the contents of the file jumps to a particular slide. To do this I use the following code

ActivePresentation.Slides(SlideNumber).Selec

This works fine in slide preview view, but in slide show view I get error

-2147188160 Slide (unknown member) : Invalid request. This view does not support selection

Any ideas how I can achieve this

Da
 
S

Shyam Pillai

Dan,
Slideshow mode requires a different code:

SlideShowWindows(1).View.GotoSlide <Index>,[<ResetSlide>]

SlideShowWindows(1).View.GotoSlide SlideNumber, True
--
Regards
Shyam Pillai

http://www.mvps.org/skp

Dan said:
I have a presentation that periodically reads a file, and based on the
contents of the file jumps to a particular slide. To do this I use the
following 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