Examples: COM_CreateObject()


The following example uses the COM_CreateObject() function to create a COM object reference to a new instance of an Excel application.

local Excel.Application app;

{Create a COM object reference to an Excel application.}
app = COM_CreateObject("Excel.Application");

The following example uses the COM_CreateObject() function to create an instance of an Excel application object on the machine named “SystemServer”.

local Excel.Application app;

{Create a COM object reference to an Excel application on the machine "SystemServer".}
app = COM_CreateObject("Excel.Application", "SystemServer");


Documentation Feedback