Changing Current Slide in VBA

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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:
 
Back
Top