Share via


Working with Existing Presentations

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

You use the Presentations collection's Open method to open a presentation saved to disk and create a reference to that presentation at the same time. The following example opens the PowerPointTools.ppt presentation:

Dim ppApp      As PowerPoint.Application
Dim prsPres    As PowerPoint.Presentation

Set ppApp = New PowerPoint.Application
Set prsPres = ppApp.Presentations.Open("c:\opg\Samples\CH05\PowerPointTools.ppt")
With prsPres
   ' Code to manipulate presentation and its 
   ' contents goes here.
End With

See Also

Working with the Presentation Object | Working with Open Presentations | Creating a New Presentation | Formatting a Presentation | Running a Slide Show from a Presentation