Exercise 2: Initialize OLE Objects 

Prerequisites

Procedure

To start EXCEL and initialize the OLE objects, create an object excel of class EXCEL.APPLICATION and call the necessary methods of OLE objects.

Below the declaration section, enter:

create object excel 'EXCEL.APPLICATION'.

call method of excel 'WORKBOOKS' = books.

call method of books 'ADD' = book.

How to Continue

Exercise 3: Call Function Module