Results 1 to 19 of 19

Thread: Simple Macro to import slides from a file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Simple Macro to import slides from a file

    I am trying to import slides from multiple files into a single presentation.

    Here is what I have in VB so far - what else do I need - I have minimal skills in this area - but I have to import 28 slides into a single presentation on a weekly basis. It would be easier to rename the files to be consistent and run a macro. Can anyone please help me?

    Sub ImportAgencySlides()
    Dim FileName As String
    Dim Index, SlideStart, SlideEnd As Long

    ActivePresentation.Slides.InsertFromFile("c:\filename1.ppt", 1, 1, 1)

    End Sub

    When I debug, I get Compile Error: Syntax Error

    If I change it (based on MS help sites), to this format:

    ActivePresentation.Slides.InsertFromFile_ "c:\filename1.ppt", 1, 1, 1

    I get the following error: Method or Data Member not found
    And, the file is in the path and file name described.

    I also want to have it import multiple files, what would that sytax be?

    Thanks for any and all help!

    Last edited by KMR; 08-30-2007 at 06:28 PM.

Posting Permissions

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