Insert Slides from Files Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to create a macro to insert slides from another presentation - but
cannot find a VB command to do this.
Eventually, I want to create a dialog box for the user to specify a number
of slides, which then get imported into the active presentation. But as I
cannot find a command to import the slides automatically, I am finding this a
little difficult.
 
Pete Luffs said:
I want to create a macro to insert slides from another presentation - but
cannot find a VB command to do this.
Eventually, I want to create a dialog box for the user to specify a number
of slides, which then get imported into the active presentation. But as I
cannot find a command to import the slides automatically, I am finding this a
little difficult.

Try this:

Dim lSlidesInserted
lSlidesInserted = ActivePresentation.Slides.InsertFromFile("filename", _
slideindex_to_insert_at, _
startingslide, _
endingslide)

' lSlidesInserted is now = number of slides inserted from "filename"

Put your cursor on InsertFromFile and press F1 for more detailed help.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top