+ Reply to Thread
Results 1 to 3 of 3

PPT VBA to Insert Slides via ReUse Slides

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Chandler, AZ
    MS-Off Ver
    365
    Posts
    1

    PPT VBA to Insert Slides via ReUse Slides

    I have some code that is giving me a RUn time Error: Slides (unknown member): Failed

    It happens on this line:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    My GetDownloadsPath function is:

    Please Login or Register  to view this content.
    Any ideas how to correct?

  2. #2
    Registered User
    Join Date
    06-07-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    14

    Re: PPT VBA to Insert Slides via ReUse Slides

    Sure - It would help in future if you reproduced the full error message. The source of the problem likely lies in the length of the file that you're trying to insert. According to your code, you're expecting it to stretch across 26 slides and the error message is telling you that it can't.

  3. #3
    Registered User
    Join Date
    06-07-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    14

    Re: PPT VBA to Insert Slides via ReUse Slides

    It's self-evident that the file you're attempting insert will not span 26 slides, because content of the file is stored in a variable called FileContent which, coincidentallly (?), is also it's own filename (?!?!). So there is a logical error there as well. Any variable containing a string that is suitable as a filename will be far too short to span 26 slides. Equally, any variable containing string that is sufficiently long enough to span 26 slides will far exceed the permissible filename length.

+ 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. Copy all text boxes (from all slides) in to one slide / insert Video background
    By nagesh.tvsr in forum PowerPoint Formatting & General
    Replies: 0
    Last Post: 11-13-2019, 03:39 AM
  2. Adding slides in PPT
    By rajuganapathy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2019, 02:28 AM
  3. Insert batch of pictures into Powerpoint slides sorted by name
    By plantpol in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2017, 05:02 AM
  4. divide the images in two slides
    By lupingamon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2014, 03:02 AM
  5. Creating a presentation of a few slides from multiple slides
    By zneff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2014, 10:54 AM
  6. Loop to Create several PPT slides!?
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2010, 09:31 AM
  7. VBA to update PowerPoint slides.
    By bapatterson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2010, 01:44 PM

Tags for this Thread

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