> >
> >
> > Actually you are doing worng syntanx workbooks.open need a file name not excel object!.
> > LOCAL lobject, lcFile,lobject1
> > lobject = CREATEOBJECT('Excel.Application')
> > lobject.Visible = .T.
> > lobject.Workbooks.Open("c:\temp.xls")
> >
> >
> > Anil
> >
My Blog>
>
>
> Hi anil,
>
> This new code also shows same problem.pls tell me any other solution.
>
> Thanks,
> vaishali maske
lcXLFile = getfile("xls")
if not empty(lcXlFile)
lobject = CREATEOBJECT('Excel.Application')
lobject.Visible = .T.
lobject.Workbooks.Open(lcXLfile)
endif
-----------------------------------------------------------------------------------------------
Regards
Surinder Singh
Email:
sur200@indiatimes.comCheck my blog for details:
http://weblogs.foxite.com/sur200----------------------------------------------------------------------------------------
*Everything is possible but everything is not required to be happy..