I have an embedded PowerPoint presentation in an Excel workbook. How can I edit this (open, copy slides, add data to slides, close) using VBA?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Add a reference to the PowerPoint Object Model to your VBA application
From the VBA window, choose Tools | References
Look for Microsoft Powerpoint 12.0 Object Library and check it
2. Select and activate the PowerPoint presentation object
Note: this code assumes that the PowerPoint object is named Object 1 (look in the top left corner to see what it’s really named) and that it is on the active sheet.
3. Get a reference to the Presentation object
4. Manipulate it
All the methods and properties of a presentation object are available to you. Here’s an example of adding a slide:
5. Deselect it
The easiest way is just to select a cell.
Hope that helps!