Click on close macro

  • Thread starter Thread starter Bradley
  • Start date Start date
B

Bradley

I have a presentation slide that has a hyperlink that takes me to a website.
I would like to have the presentation close after I click the hyperlink.
Can I create a macro for this? How?
 
I have a presentation slide that has a hyperlink that takes me to a
website. I would like to have the presentation close after I click
the hyperlink. Can I create a macro for this? How?

Try this (replacing the URL you want to go to for the google address):

Sub jumpandquit()
ActivePresentation.FollowHyperlink Address:="http://www.google.com/"
ActivePresentation.SlideShowWindow.View.Exit
End Sub

--David
 
John thanks it worked. However I am realizing that I don't want to quit the
app I simply want to close the presentation that contains the link. Can I
change Application.Quit to Presentation.Close?
 
As per my earlier response, use this:

ActivePresentation.SlideShowWindow.View.Exit
 
Back
Top