#Define xlExcel5 39 #Define xlExcel7 39 #Define xlExcel9795 43 lcTxtName = sys(5)+curdir()+"mytext" oExcel = createobject("Excel.application") With oExcel .Workbooks.open(lcTxtName+".txt", , , 6, , , , , ";") With .ActiveWorkbook .SaveAs(lcTxtName+".xls",xlExcel5) .Saved = .t. Endwith .Quit EndwithCetin