Command button

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

Guest

What code would I use to have a command button open an internet page on a
click?
 
Use the following example from the VBA help file for FollowHyperlink:

This example loads the document at example.microsoft.com in a new window
and adds it to the history folder.

ActivePresentation.FollowHyperlink _
Address:="http://example.microsoft.com", _
NewWindow:=True, AddHistory:=True

--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/
 
No need for VB, just select an object (text, drawn object, etc.) and create
a hyperlink for it.


Austin Myers
MS PowerPoint MVP Team

Solutions to Multimedia in PowerPoint www.pfcmedia.com
 
David,
I added that code for the command button. When I tested it nothing happened?
 
Thanks Austin, much easier.

Austin Myers said:
No need for VB, just select an object (text, drawn object, etc.) and create
a hyperlink for it.


Austin Myers
MS PowerPoint MVP Team

Solutions to Multimedia in PowerPoint www.pfcmedia.com
 
As Austin said, you don't need to do anything special (especially if you
don't mind typing in the address). For example - open PowerPoint; on your
title slide, click inside the title placeholder and type the following
(notice the "space" at the end): "www.pttinc.com ". The space added to the
end recognizes it as a URL address. Go into slide Show Mode, click the
link, and you have just gone to my site (sorry for the advertising).
Clicking the "X" at the top right closes IE and takes you back to your
presentation.

Hope that helps!
 
Ah. I was going to suggest that, but I assumed you had a reason to do it
with code. Of course, you can hyperlink to anywhere without code, but if
you need to conditionally link or link and do some other things, then
you'll need the code.
--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/
 
I assume from your response to Austin that you are all set with doing
this without code. Shout back if you need to do this with code.
--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

Back
Top