Jul 22, 2002 #2 Mike Gagnon Programmer Apr 6, 2002 8,067 CA VFP has an import function File - > Import (Microsoft Excel 5.0 and 97) Upvote 0 Downvote
Jul 23, 2002 #3 cslawtom MIS Sep 3, 2001 161 HK If you want to read a specific cell from an Excel file, OLE is a solution. oExcel=CreateObject("excel.application" WITH oExcel .Workbooks.Open("C:\SALARY.xls" .Sheets(1).Select .Range("C11".Select nSalary = VAL(.ActiveCell.FormulaR1C1) .ActiveWorkbook.Close(.F.) ENDIF ..... Upvote 0 Downvote
If you want to read a specific cell from an Excel file, OLE is a solution. oExcel=CreateObject("excel.application" WITH oExcel .Workbooks.Open("C:\SALARY.xls" .Sheets(1).Select .Range("C11".Select nSalary = VAL(.ActiveCell.FormulaR1C1) .ActiveWorkbook.Close(.F.) ENDIF .....