+ Reply to Thread
Results 1 to 3 of 3

Duplicate the last 2 slides in a powerpoint deck, in order.

  1. #1
    Registered User
    Join Date
    05-22-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Duplicate the last 2 slides in a powerpoint deck, in order.

    I have a powerpoint deck with 1+2i total slides. Each i requires 2 slides, in order. My problem is getting the last step of the loop to duplicate the last two slides together (I can get it to duplicate one or both slides out of order!). Is there a way to duplicate the range of slides? Below is what I mean, some term that does both slides together at the same time.

    oPPPrsn.Slides(oPPPrsn.slides.count-1 AND oPPPrsn.slides.count).Duplicate

    ?

    Thanks!

    ETA lol okay, so And does work, but it still puts the slides in out of order, even if I swap the location of the -1. It also gives me an error that there is a 0 index value.
    Last edited by Palooka_; 05-26-2015 at 02:24 PM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Duplicate the last 2 slides in a powerpoint deck, in order.

    Try this:
    oPPPrsn.Slides.Range(Array(oPPPrsn.slides.count-1, oPPPrsn.slides.count)).Duplicate
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    05-22-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Re: Duplicate the last 2 slides in a powerpoint deck, in order.

    Thank you, that worked perfectly!

+ 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. MACRO to create Powerpoint slides PDF
    By blackhawk4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 12:42 PM
  2. copy cells to powerpoint slides
    By just_some_guy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-08-2010, 09:34 AM
  3. VBA to update PowerPoint slides.
    By bapatterson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2010, 01:44 PM
  4. Pasting Selected Ranges into a PowerPoint Slides
    By NaNaBoo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-02-2009, 10:58 AM
  5. Excel formulas on different Powerpoint Slides
    By liseladele in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-31-2006, 07:28 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