+ Reply to Thread
Results 1 to 8 of 8

Excel macro to open a specific slide in a powerpoint slideshow

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    21

    Excel macro to open a specific slide in a powerpoint slideshow

    Hi, this is my very first post, so please be gentle....

    I have an Excel macro which opens a Powerpoint Slideshow (ppsx) with the filename VideoName, and closes and return to Excel after a given time (called Delay). This works well, but I need to open a specific, but varying from instance to instance, slide number. Can anyone help me with some code for that?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    Does this help?
    http://www.pptfaq.com/FAQ00528_Comma...nt_Viewers.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-23-2014
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    Thanks Andy. I am using the 2007 versions of Excel and Powerpoint. I am not certain if there was any code text on that webpage which could be inserted into my code? I am unfamiliar with the concept of Command line Switches.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    This works,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-23-2014
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    Dear Andy, here is my implementation:

    Please Login or Register  to view this content.
    End Sub

    When I run the macro I get the following eror message:

    Run-time error '-2147188160 (80048240)':
    Slide.Select: Invalid request. This view does not support selection.
    Am I doing some thing wrong?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    When you step through the code does the file open or go straight into slide show? If not what is the viewing mode?

    Try using the pptx file instead of the ppsx file.

  7. #7
    Registered User
    Join Date
    04-23-2014
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    Hi Andy,

    using a pptx file instead of a ppsx file worked However, now I first see the powerpoint application opening, then half a second later the presentation starts. Not a huge deal, bit a little less elegant than I had hoped for. Anyway around that?

    Chris

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Excel macro to open a specific slide in a powerpoint slideshow

    Not that I know

+ 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. Linking to specific powerpoint slide
    By Jdaly in forum Excel General
    Replies: 1
    Last Post: 01-17-2014, 12:28 PM
  2. Copy and paste some charts from excel into specific slide on a powerpoint template
    By ones4rus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2013, 03:00 AM
  3. [SOLVED] Copy Named charts in Excel to specific slide in Powerpoint
    By allstarrunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2012, 09:10 AM
  4. Excel appear as Powerpoint Slideshow
    By mattsgr1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2007, 08:42 AM
  5. [SOLVED] Link from an Excel spreadsheet to a specific slide in PowerPoint
    By VAB Charlie in forum Excel General
    Replies: 1
    Last Post: 02-22-2005, 07:06 PM

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