rutledj
01-22-2003, 10:48 AM
Can someone show me the proper way, using vba code, to launch open another slide from the main (1st) slide in a presentation?
I'm currently using this:
With Application
.ActivePresentation.FollowHyperlink goodPath, , False, False
wend
where goodpath is the complete path to the next slide.
This works but not always.
Also, in the secondary slide if I want to exit and go back to the main (1st) slide I'm using this code:
me.hide
For Each oSlideShowWindow In Application.SlideShowWindows
If UCase$(oSlideShowWindow.Presentation.Name) = "MAIN.PPT" Then
oSlideShowWindow.Activate
Exit For
End If
Next
Is this the proper way to close the current presentation and go back to the main slide?
Thanks,
Rut
I'm currently using this:
With Application
.ActivePresentation.FollowHyperlink goodPath, , False, False
wend
where goodpath is the complete path to the next slide.
This works but not always.
Also, in the secondary slide if I want to exit and go back to the main (1st) slide I'm using this code:
me.hide
For Each oSlideShowWindow In Application.SlideShowWindows
If UCase$(oSlideShowWindow.Presentation.Name) = "MAIN.PPT" Then
oSlideShowWindow.Activate
Exit For
End If
Next
Is this the proper way to close the current presentation and go back to the main slide?
Thanks,
Rut