Slides.InsertFromFile Method
Office 2007
| PowerPoint Developer Reference |
Syntax
expression.InsertFromFile(FileName, Index, SlideStart, SlideEnd)
expression A variable that represents a Slides object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| FileName | Required | String | The name of the file that contains the slides you want to insert. |
| Index | Required | Long | The index number of the Slide object in the specified Slides collection you want to insert the new slides after. |
| SlideStart | Optional | Long | The index number of the first Slide object in the Slides collection in the file denoted by FileName. |
| SlideEnd | Optional | Long | The index number of the last Slide object in the Slides collection in the file denoted by FileName. |
Return Value
Integer
Example
This example inserts slides three through six from C:\Ppt\Sales.ppt after slide two in the active presentation.
| Visual Basic for Applications |
|---|
|
See Also
Fails to include images
This method fails in PowerPoint 2007 to bring in images from slides, they are missing in the new presentation.
- 9/24/2007
- Christer Ogenstad