I am using the following code to create and save an Excel worksheet programatically. It works fine.
oExcel=CreateObject("Excel.Application"
oExcel.visible=.T.
oExcel.Workbooks.Open("TempWorksheet"
.Range("F3"
.Value =thisform.Txtclientname.value
.Range("F4"
.Value =thisform.Txtclientcode.value
.......
oExcel.ActiveWorkbook.SaveAs("NewWorksheet"
oExcel.ActiveWorkbook.close
oExcel.Quit()
use EST
append blank
append general ESTForm FROM "NewWorksheet" CLASS EXCELCHART
use in EST
My question: is there any way to update F3,F4,... programatically?
Currently, I update the worksheet manually by using,
use EST
MODIFY GENERAL ESTform
Any help would be appreciated.
Peter
Australia
oExcel=CreateObject("Excel.Application"
oExcel.visible=.T.
oExcel.Workbooks.Open("TempWorksheet"
.Range("F3"
.Range("F4"
.......
oExcel.ActiveWorkbook.SaveAs("NewWorksheet"
oExcel.ActiveWorkbook.close
oExcel.Quit()
use EST
append blank
append general ESTForm FROM "NewWorksheet" CLASS EXCELCHART
use in EST
My question: is there any way to update F3,F4,... programatically?
Currently, I update the worksheet manually by using,
use EST
MODIFY GENERAL ESTform
Any help would be appreciated.
Peter
Australia