General information
Category:
COM/DCOM and OLE Automation
>I have this code in the CreateInstance() method:
>
>oExcel = GetObject("\\ATHON\Usuarios\CAPACIT\Mrodrigu\Maura\INDUC-INTEGRA\CONST2.XLS")
>
One thing to keep in mind is that when you open Excel this way (by passing a filename to GetObject()), the object it returns is the Workbook, not the application. So with the code you've written oExcel refers to the workbook Const2.XLS, not to Excel itself.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only