tmpsheet = createObject('excel.application') XLApp = tmpsheet.application XLApp.Visible = .t. XLApp.WorkBooks.Add() XLSheet = XLApp.ActiveSheet * creating file in excell format with xlsheet .Cells(1,1).Value = " " .... endwith lcXLS='c:\temp.xls' with xlapp .ActiveWorkbook.SaveAs(lcXLS, -4143, "", "", .F., .F.) .Workbooks.Close endwith release tmpsheetBut it still display in excell application and it only close the work sheet.