| Start |
|---|
| The Basics: Launching PowerPoint from VBA While there are many parameters that can be changed and variations that can be added depending on the desired functionality, this example lays out the basic framework for launching PowerPoint. Note: This code requires that the PowerPoint reference has been added to the active VBA Project. See the References (opens new window) Documentation entry to learn how to enable the reference. First, define variables for the Application, Presentation, and Slide Objects. While this can be done with late binding, it is always best to use early binding when applicable. Next, open or create a new instance of the PowerPoint application. Here, the Once the application has been launched, a new presentation and subsequently contained slide is generated for use. Upon completion of this code, a new PowerPoint window with a blank slide will be open. By using the object variables, shapes, text, graphics, and excel ranges can be added as desired RemarksThis section demonstrates a variety of ways to interact with PowerPoint through VBA. From showing data on slides to creating charts, PowerPoint is a very powerful tool when used in conjunction with Excel. Thus, this section seeks to demonstrate the various ways VBA can be used to automate this interaction. |
Read Article
https://develop.horje.com/learn/1434/reference