lnWB = loExcel.OpenXlsxWorkbook(lcFileName, .F.) && this opens the Excel file and reads into the internal cursors; lnWB is the handle to the new workbook IF lnWB > 0 loRow = loExcel.GetSheetRowValues(thisform.Workbook, 1, 1) && See documentation -- this returns the cell values for first row with datatype IF ISNULL(loRow) && failure ELSE FOR lnCol=1 TO loRow.Count IF !ISNULL(loRow.Values[lnCol, 1]) .AND. !EMPTY(loRow.Values[lnCol, 1]) && Got a cell value ENDIF ENDFOR ENDIF ELSE && Failure ENDIF