PDA

View Full Version : selecting slide in slideshow



sly020175
01-11-2007, 09:06 AM
I was wondering if there was a way to view a slide within a slideshow. I can get this to work with using GoTo slide, but I wanted to use the slideId in order to ensure that it always works even if the slides move around. Any suggestions on this? I also would like to know if there is any code that will undo any changes that were made and goback to the previous viewed slide on a click.

I don't know if I am making this too complicated, but all I am trying to do is have a link that will go to a slide and highlight a portion of that slide and after discussion a click would return me to the original slide. Then the next link would goback to the other slide and highlight a different portion of the slide and then return to the original slide and so on .........

Thanks in advance,
Sly

John Wilson
02-24-2007, 12:41 PM
Hi

You can find the slideID of a selected slide with

Sub findID()
With ActiveWindow.Selection.SlideRange
MsgBox .SlideID
End With
End Sub

To use this ID in a goto try

Sub gotoit()
target = ActivePresentation.Slides.FindBySlideID(258).SlideIndex
ActivePresentation.SlideShowWindow.View.GotoSlide (target)
End Sub

John Wilson