Creating a button that is a hyperlink to another ppt presentation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to link one ppt to another and need to use a VB script to do it.
Can someone help with what I need to do? Thanks
 
Why use VB when you don't have to? It can be done using the "Hyperlink to",
"Other PowerPoint presentation" option of the Action Settings dialog box.
 
You can link to another presentation using the Hyperlink feature. However,
if you NEED to use code to do it...

Presentations.Open ("Filename.ppt")

....should work. Files should be in the same folder or you should be careful
to get the path correct.
 
The problem with that Bill is that I am using VB to create a slide at the end
of a test and it is on that new slide that is being generated that I need the
button to hyperlink to a new presentation and close the current one. I'm
open to suggestions for better ways to do it.
 
ActivePresentation.FollowHyperlink "Example.ppt"

Change Example.ppt to the name of your file. I assume you have other things
you want the same button to do besides hyperlink. Otherwise, there is no
need to use VBA.

--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/
 
David,
How do i get it to close the current presentation before or after opening
the linked one?
 
Hmm. I don't think you can. When you hyperlink from a presentation to
another, I think the parent needs to stay open. If you use
Presentations.Open, that doesn't seem to let you close the presentation
either. If you close the presentation first, it can never follow the
hyperlink. Maybe someone else has a better idea. Why do you need to close
the orginal presentation?
--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/
 

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

Back
Top