LOCAL lcExcelFile lcExcelFile = GETFILE("XLS") IF NOT EMPTY(lcExcelFile) IMPORT FROM (lcExcelFile) XL5 && You can include SHEET TheNameOfTheSheet here USE (lcExcelFile) IN 0 BROWSE NORMAL ENDIFBUT you must know what column what information contains. I mean this way you can get a DBF that have fields like:
LOCAL lcExcelFile, loExcel lcExcelFile = GETFILE("XLS") IF NOT EMPTY(lcExcelFile) loExcel = CREATOBJECT("Excel.Application") loExcel.Open(lcExcelFile) CREATE CURSOR MyExcel (.........) && Field List of the cursor you want to import WITH loExcel.ActiveWorkBook FOR nRow = 1 TO .Rows.Count APPEND BLANK IN MyExcel FOR nCol = 1 TO .Columns.Count lcField = FIELDS(nCol) REPLACE (lcField) WITH .Cells(nRow, nCol).Value && With proper transformations if you needed one NEXT NEXT ENDWITH ENDIFKeep in mind that the Automation section here is not tested and I didn't put any error handling.