lcFileName = sys(5)+curdir()+"mytextfile.txt" oExcel = createobject("Excel.application") with oExcel .Workbooks.open(lcFileName, , , 6, , , , , ",") && Delimited with comma .visible = .t. endwithOtherwise first get it into a table then copy to text file type xls.