o=NewObject('Excel.Application')
o.Workbooks.Open(sys(5)+curdir()+"book1")
if
MESSAGEBOX("已生成,要打开EXCEL吗?",1+256,"提示")==1
o.visible=.t.
***这里开始请教代码怎么写才能实现***
****
*!*
* RETURN
*!*
o.Workbooks.Close
*!*
o.Quit
*!*
Release oExcel
*!*
*close all
Thisform.show
EndIf
o.Workbooks.Close
o.Quit
Release oExcel
Thisform.show