+ Reply to Thread
Results 1 to 9 of 9

Excel Macro to Start a PowerPoint Presentation

  1. #1
    Registered User
    Join Date
    09-03-2017
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    5

    Excel Macro to Start a PowerPoint Presentation

    So I have an Excel spreadsheet with an embedded PowerPoint presentation, I want to create a Macro that either:

    1. Starts playing the presentation in the allocated sized Window as soon as the Excel spreadsheet is opened (if possible)

    2. If the above isn't possible then the ability to click on the presentation window so it starts playing.

    I'm also wondering if the above can be achieved without embedding the spreadsheet but located in the same folder.

    Would appreciate some assistance.

    Thank you,

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Excel Macro to Start a PowerPoint Presentation

    Please Login or Register  to view this content.
    You can put the above in the 'workbook_open' event.....and it'll run when you open the workbook.
    Last edited by BellyGas; 09-04-2017 at 06:45 AM.

  3. #3
    Registered User
    Join Date
    09-03-2017
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Excel Macro to Start a PowerPoint Presentation

    Hi,

    Thank you, unfortunately when opening the Excel document it doesn't appear to start the presentation.

    I placed the above code in to the Workbook_Open Event, do I need to assign a macro to the presentation itself within Excel?

    Thank you,

    Edit: if I click on the presentation I get a compile error - Invalid outside procedure.
    Last edited by UHD2017; 09-04-2017 at 08:11 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Excel Macro to Start a PowerPoint Presentation

    What happens if you put the code above in a standard module (surrounded by Sub subname and End Sub) and run it?

    eg:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-03-2017
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Excel Macro to Start a PowerPoint Presentation

    If I assign a Macro and place the code in there, when I click on the presentation it just launches PowerPoint in a new window with the presentation

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Excel Macro to Start a PowerPoint Presentation

    Doh. i think I may have misunderstood your initial request. You don't want to open a PPT then, you want to have the PPT opened in Excel?

  7. #7
    Registered User
    Join Date
    09-03-2017
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Excel Macro to Start a PowerPoint Presentation

    Yeah so I would like the embedded Power-point in Excel to start playing the slideshow when Excel is opened, or if that's not possible the ability to click on the power point so it starts playing - but this needs to be within the allocated window, if that makes sense.

    The other option is to have the power-point separate (within the same folder as the excel doc) but linked to the Excel document and have it playback that way rather than embedding it completely?

  8. #8
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Excel Macro to Start a PowerPoint Presentation

    I think I finally understand the problem. When you embed a ppt into an Excel sheet you can pick the size it appears on the page, however, when you double click it to show the presentation it'll run full screen in another window.

    Being honest, I've never tried to do what you're trying and Google was being particularly obtuse about showing me any results that weren't talking about embedding Excel pages into a ppt. However, I did find this:

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=756

  9. #9
    Registered User
    Join Date
    09-03-2017
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Excel Macro to Start a PowerPoint Presentation

    Hi

    Sorry had to leave this for a while due to other commitments.

    So I gave the above ago and haven't had much look unfortunately, I've now converted the Powerpoint into a MP4 hoping i'd have more luck but the best I can get is for it to open in a new window which isn't what I need.

    I don't suppose you're able to help any further? just need it to play/loop within the designated area (window)

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Transfer Range from Excel to Powerpoint (New or Existing Powerpoint Presentation)
    By ThePeoplesClub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2014, 02:52 PM
  2. Excel chart in powerpoint presentation
    By beneesetas14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2014, 06:53 AM
  3. Replies: 0
    Last Post: 12-01-2013, 01:43 AM
  4. Replies: 13
    Last Post: 01-11-2013, 04:46 PM
  5. Update Graph in Powerpoint Presentation through Excel VBA macro
    By sinha.shweta85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 12:32 AM
  6. Need an excel macro that dynamically changes a chart in PowerPoint Presentation mode
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2010, 05:07 AM
  7. PowerPoint Presentation in Excel
    By mehare in forum Excel General
    Replies: 1
    Last Post: 09-01-2006, 11:56 AM

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