use your_table Genfieldname="lcfile" && General field name GO (recno_you_need) local oForm oForm = Createobject('_Form',GenFieldName) WITH oForm.myOle1 IF .oleclass="Excel.Sheet" ERASE c:\hi.xls .object.saveas("c:\hi.xls") && it creates the file, * but with the Hidden Window * now open the file, unhide Window and save again oExcel=CREATEOBJECT("Excel.Application") WITH oExcel .DisplayAlerts = .f. .Workbooks.Open("c:\hi.xls") .Windows(1).visible=.t. .Workbooks(1).Save() ENDWITH oExcel.Quit oExcel=.null. RELEASE oExcel ELSE ?"? OLeclass: ", .oleclass endif ENDWITH =oForm.Release() RETURN *---------------- Define Class _Form As Form PROCEDURE iNIT LPARAMETERS pGenFieldName this.addobject('myOLe1',"OleBoundControl") this.myole1.ControlSource = ALIAS()+'.'+pGenfieldName ENDPROC Enddefine *------------------------------------->Hi,