The procedure describes how to add an Object library reference, and afterwards how to declare new variables with reference to the new library class objects.
The example below shows how to add the PowerPoint library to the existing VB Project. As can be seen, currently the PowerPoint Object library is not available.
Note: PowerPoint 14.0 means that Office 2010 version is installed on the PC.
PowerPoint and pressing
., another menu appears with all objects options related to the PowerPoint Object Library.
This example shows how to select the PowerPoint's object
Step 4: Now the user can declare more variables using the PowerPoint object library.
Code version of this tutorial:
Option Explicit Sub Export_toPPT() Dim ppApp As PowerPoint.Application Dim ppPres As PowerPoint.Presentation Dim ppSlide As PowerPoint.Slide ' here write down everything you want to do with the PowerPoint Class and objects End Sub