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.
Note: PowerPoint 14.0 means that Office 2010 version is installed on the PC.
After selecting 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 Application.
Code version of this tutorial:
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