+ Reply to Thread
Results 1 to 7 of 7

Open .ppt file from excel command button

  1. #1
    Registered User
    Join Date
    11-20-2007
    Posts
    33

    Open .ppt file from excel command button

    Hi

    I have created a large process map workbook in excel that links to various areas within the document using command buttons.

    However, one of the things I need users to be able to see s in a PowerPoint presentation.

    All I need to do is create a command button that links to, and opens this .ppt file.

    The .xsl and .ppt files will be distributed in a folder to other members of the team so I need the link to not be specific to my computer. Is it possible to avoid using the full path and just use a short path such as .../desktop/tools/process.xls so that as long as they store the folder on their own desktop the link works?

    I'm struggling to work this one out so would appreciate your help.

    Thanks in advance
    Last edited by DrEvilAces; 03-19-2009 at 05:25 AM.
    DrEvilAces

    If life is like a box of chocolates, then my boss is the coffee flavoured one!!

  2. #2
    Registered User
    Join Date
    11-20-2007
    Posts
    33

    Re: Open .ppt file from excel command button

    Sorry to bump but I could really use some help on this, please?

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Open .ppt file from excel command button

    Hi there,

    Try the following:
    Please Login or Register  to view this content.
    The PowerPoint presentation should be stored in the same folder as the Excel workbook.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  4. #4
    Registered User
    Join Date
    11-20-2007
    Posts
    33

    Re: Open .ppt file from excel command button

    Hi Greg

    Thanks for the code, I'm not sure where I shuld be putting it though!

    Should it go in the
    Please Login or Register  to view this content.
    of the button code or should it sit in a seperate module?

    If it goes in a seperate module how does that then link to the _Click() Sub of the button.

    Sorry if these are obvious questions but I'm a total beginner a VB. I know how to record macros and copy and paste them into Private Sub's but that about it!

    Many Thanls

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Open .ppt file from excel command button

    Hi again,

    Sorry for the delay in getting back to you.

    I'm assuming you want to put a button on the worksheet itself, which is probably all that you need. Let me know if you want to create a userform, but in that case you'll probably need a button on the worksheet anyway (in order to display the userform).

    The code should be placed in a standard VBA code module.

    First, delete the word "Private" from the following code:
    Please Login or Register  to view this content.
    To create a button on your worksheet, use View >> Toolbars >> Forms, to display the Forms toolbar. This toolbar will allow you to create a button anywhere you like on your worksheet. When you do this, the "Assign Macro" dialog box will open, and the macroname "OpenPowerPointPresentation" will be visible. Select it, and then click on "OK". The macro will now be executed whenever the button is pressed.

    Finally, re-insert the word "Private" into the code shown above - it's not absolutely essential to do this, but it's probably good practice.

    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M

  6. #6
    Registered User
    Join Date
    11-20-2007
    Posts
    33

    Re: Open .ppt file from excel command button

    Hi Greg

    Through experimenting with your original code and a bit more leg work I came up with this:
    Please Login or Register  to view this content.
    And it seems to work perfectly, main thing is it works not sure how or why! But it works

    Thanks for all your help Greg

    Cheers

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Open .ppt file from excel command button

    Hi again,

    Many thanks for your feedback - glad I was able to help.

    Regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1