keepingbusy
Programmer
With reference to thread184-1605291 I have tried out some of the code posted without success:
Code:
COPY TO (THIS.cWorkFile) XLS
loExcel= CREATEOBJECT("EXCEL.APPLICATION")
loExcel.Workbooks.OPEN(THIS.cWorkFile)
so I'm guessing this is used within a form.THIS can only be used within a method
Having removed that and replace the THIS.cWorkFile with a variable (myfile) I still get an error:
OLE IDispatch exception code 0 from Microsoft Office Excel: 'myfile.xlsx' could not be found . Check the spelling of the file name, and verify that the file location is correct.
Code:
STORE "myfile" TO cWorkFile
COPY TO (cWorkFile) XLS
loExcel= CREATEOBJECT("EXCEL.APPLICATION")
loExcel.Workbooks.OPEN(cWorkFile)
My goal here is to export about 180000 records from a table into an XLSX file. We didn't have a problem in previous versions of Excel but as you know, they were limited to around 65000 records, hence the reason we upgraded.
We are using VFP9, Excel 2007, Windows 7
Any advice / guidance would appreciated.
Thank you
Lee