oExcel = CREATEOBJECT([Excel.Application]) oExcel.Visible = .t. oWorkbook = oExcel.Workbooks.Add() oWorkbook.SaveAs(cxlsfile, xlNormal) oWorkbook.open(cxlsfile)Though I'm not sure you need that last .open command, but I haven't tested it, but doesn't the SaveAs leave the file open?
>oExcel = CREATEOBJECT([Excel.Application]) >oExcel.Visible = .t. >oWorkbook = oExcel.Workbooks.Add() >oWorkbook = oExcel.ActiveWorkbook.SaveAs(cxlsfile, xlNormal) >oWorkbook = oExcel.Workbooks.open(cxlsfile) >>