oExcel = CreateObject("Excel.Application") oWorkbook = oExcel.Workbooks.Open(lcXlsFile) oExcel.Visible = .T. ? oWorkbook.FileFormat