Click to See Complete Forum and Search --> : GetObject("",Excel.application)


Art Yates
October 28th, 1998, 10:31 AM
I tried:

myxl=GetObject("",Excel.Application)


Just exactly as in the vb help file, but it doesn't work.

I have a VBA reference in my project.


This statement works OK:

Myxl=GetObjext("path\book.xls")


But it doesn't help if the .xls is already open.


TIA

Jurgen Muller
October 29th, 1998, 04:00 AM
try this:


GetObject(,"Excel.Application")


Bye

Jurgen

__Neph__
October 29th, 1998, 02:50 PM
hi guy,


try this


dim MyXL as object


set MyXL = getobject("","Excel.application")


It should work...


__Neph__

ShengTian Liao
November 4th, 1999, 09:22 PM
Is there coresponding routine in VC like GetObject() in VB.

ShengTian Liao