Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excel VB - Open .ppsx, save & close excel issue

Excel VB - Open .ppsx, save & close excel issue

Excel VB - Open .ppsx, save & close excel issue


Hello Eng Tips,
Im writing a code to open a power point show, save & close excel workbook. I added the ActiveWorkbook.save before ActiveWorkbook.quit line because the program ask to save the file before close it. The issue I get with this code is that it dont open the pps just save & close excel, any advice?

CODE --> Basic

Sub Open_PPS()
' Open_PPS Macro

    ActiveSheet.Shapes.Range(Array("Picture 17")).Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection.ShapeRange.Item(1), Address:= _
    "Presentation%20Show.ppsx#2. Slide2"
End Sub 

Best Regards
Microsft Office 2010

RE: Excel VB - Open .ppsx, save & close excel issue

Hi David
As far as I can see you are just creating a hyperlink, not actually activating it.
When I record a double click on a hyperlink in a cell I get the following:
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Fore a shape:
Selection.ShapeRange.Item(1).Hyperlink.Follow NewWindow:=False, AddHistory:=True

You will need something like this (the second line should work for your program) before the ActiveWorkbook.save

Hope this helps

RE: Excel VB - Open .ppsx, save & close excel issue

The reason that your macro doesn't open the PowerPoint is because it does nothing that would cause a PowerPoint to open.

Please explain what you want to accomplish.

RE: Excel VB - Open .ppsx, save & close excel issue

Thanks all for your responses, Im still evaluating the use of the macro. My intent is to create a button/hyperlink that open an Excel file form a PPS and do the same (but closing Excel in the process) to go back to the same slide. Why do I need to do this?, simple to avoid interaction with the keyboard and set up others computers.

Best Regards.

RE: Excel VB - Open .ppsx, save & close excel issue

Either there's a language barrier or just misunderstanding. When you open a hyperlink to an Excel file in Powerpoint, Powerpoint doesn't close, so there is no reason to have to reopen it. Furthermore, if it was closed for some reason, reopening it will not send you back to the hyperlink anyway.

FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers

RE: Excel VB - Open .ppsx, save & close excel issue

please explain what you want to do. Not how you think it should be done.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close