Use VBA to launch slide show from within another show

G

Guest

I can't find the correct command for this in VBA

I'm trying to start a presentation from within another presentation and then
be returned to the next slide in the original presentation. I can open
another ppt file, but can't figure out how to make it show and then return to
the original presentation. Can anyone put me on to the right track?

Example:

Presentation1 advances to slide 5.
Clicking an actionObject in slide 5 opens Presentation2
Presentation2 plays out to its end and returns the viewer to Slide 6 of
Presentation1

Thanks in advance!
DMC
 
D

David M. Marcovitz

I think that most of what you want to do is dependent on the other show,
not the VBA call from this show. The other show needs to be set to run
through and exit. Upon exiting the other show, you should automatically
be back at the original show. If that is the case, your simple hyperlink
(with or without VBA) should work just fine.
--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.loyola.edu/education/PowerfulPowerPoint/
 
G

Guest

Right, but how do I launch the show with VBA -- i.e., I don't know what
command to use.
 
D

David M. Marcovitz

You can do it with a regular hyperlink (not VBA), but if you need to use
VBA, then try:

Sub LinkSomewhere()
ActivePresentation.FollowHyperlink "OtherFile.ppt"
End Sub

where OtherFile.ppt is the name of the other file. Include the full path
if the other file is not in the same folder as the one your linking from.

--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.loyola.edu/education/PowerfulPowerPoint/
 
G

Guest

Perfect. Thanks, David!

David M. Marcovitz said:
You can do it with a regular hyperlink (not VBA), but if you need to use
VBA, then try:

Sub LinkSomewhere()
ActivePresentation.FollowHyperlink "OtherFile.ppt"
End Sub

where OtherFile.ppt is the name of the other file. Include the full path
if the other file is not in the same folder as the one your linking from.

--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.loyola.edu/education/PowerfulPowerPoint/
 

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