go back to the same slide from different level paths?

G

Guest

my problem seems to be:
the target slide is T, and is linked T->R, T->S (text hyperlinks)
i also linked A->T B->T (text hyperlinks) (many other slides could be linked
to T)
i placed a button to T that is linked to Last Slide Viewed, I cannot place a
button for each previous slide cause they are many. Buttons to R and S is
hardly linked to slide T.
When I go A->T or B->T i can go back with the Last Slide Viewed button, but:
if i go eg. A->T->R obviously i cannot return to A, because the Last Viewed
Slide button makes a loop between T and R.
Is there any solution for this?
Thank you
 
G

Guest

Wouldn't be hard to write a macro to keep track of the slide view order, well
with a bit of patience anyway. If I get time on my gig today I'll have a go.

kraves
 
D

David M. Marcovitz

As kraves said, this would require a macro. PowerPoint's Last Slide
Viewed doesn't behave like a the Back button on a browser, and there is
no built-in function for that.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
G

Guest

thank you for your answer :)

kraves said:
Wouldn't be hard to write a macro to keep track of the slide view order, well
with a bit of patience anyway. If I get time on my gig today I'll have a go.

kraves
 
G

Guest

Ok here is my quickest (read laziest) way of doing it, without looking into
Slide Events.

Basically 2 macros:
Take record of previous slide when you hit T, and
At S or T jump back 2 slides.

Trick is on T slide - the Button to jump to R or S has both a MouseOver and
MouseClick action. I figured the Pres is designed to be clicked, and when
the Jump Button is pressed do we forget the lastslideviewed, so lets remember
it at this point.

<Alt-F11 and add a module>


Dim BeforeLastViewedSlideIndex As Integer
'keeps track of the 2nd last viewed slide

Sub UpdatePrevIndex()
'run on mouse over on slide T. This was laziest way I could think about
doing it!

BeforeLastViewedSlideIndex =
SlideShowWindows(1).View.LastSlideViewed.SlideIndex
MsgBox ("BeforeLastViewedSlideIndex = " + BeforeLastViewedSlideIndex)
End Sub

Sub Back2Slides()
'run on mouseclick on Back 2 slides button

On Error GoTo errorhandler
SlideShowWindows(1).View.GotoSlide (BeforeLastViewedSlideIndex)
Exit Sub
errorhandler:
MsgBox ("Error skipping back 2 slides!")
End Sub

----------
On slide T, buttons R and S need this ...
Mouseover: run macro UpdatePrevIndex()
MouseClick: Hyperlink to Slide… R or S

On Slide R and S, need Back2 button ...
MouseClick: run macro Back2Slides()


Thats about it

There's not really any error checking for the jump back 2 routine, but I
haven't crashed it yet - wasn't sure what would happen if you ran update on
first slide.

Download the file ....
http://www.slideshare.net/speakersupport/how-to-skip-back-2-viewed-slides


Cheers, Kyle.
 
G

Guest

many thanks to kraves :)

kraves said:
Ok here is my quickest (read laziest) way of doing it, without looking into
Slide Events.

Basically 2 macros:
Take record of previous slide when you hit T, and
At S or T jump back 2 slides.

Trick is on T slide - the Button to jump to R or S has both a MouseOver and
MouseClick action. I figured the Pres is designed to be clicked, and when
the Jump Button is pressed do we forget the lastslideviewed, so lets remember
it at this point.

<Alt-F11 and add a module>


Dim BeforeLastViewedSlideIndex As Integer
'keeps track of the 2nd last viewed slide

Sub UpdatePrevIndex()
'run on mouse over on slide T. This was laziest way I could think about
doing it!

BeforeLastViewedSlideIndex =
SlideShowWindows(1).View.LastSlideViewed.SlideIndex
MsgBox ("BeforeLastViewedSlideIndex = " + BeforeLastViewedSlideIndex)
End Sub

Sub Back2Slides()
'run on mouseclick on Back 2 slides button

On Error GoTo errorhandler
SlideShowWindows(1).View.GotoSlide (BeforeLastViewedSlideIndex)
Exit Sub
errorhandler:
MsgBox ("Error skipping back 2 slides!")
End Sub

----------
On slide T, buttons R and S need this ...
Mouseover: run macro UpdatePrevIndex()
MouseClick: Hyperlink to Slide… R or S

On Slide R and S, need Back2 button ...
MouseClick: run macro Back2Slides()


Thats about it

There's not really any error checking for the jump back 2 routine, but I
haven't crashed it yet - wasn't sure what would happen if you ran update on
first slide.

Download the file ....
http://www.slideshare.net/speakersupport/how-to-skip-back-2-viewed-slides


Cheers, Kyle.
 

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