my code:
{ oExcel=obj_new("IDLcomDispatch$PROGRID$Excel_Application")
if ~oExcel then return
oExcel->GetProperty,Workbooks=oWkbks
oWkbks->Add oWkbks->GetProperty,'Book1',Item=oBookData
........}
now, the question is: 'Book1' can be changed automatically, and the code had error. How can I get the name of workbooks?
another question:oWkbks->SaveAs,filename ; The program prompted whether I want to save every time. how can I cancel out this prompt?
|