ox = CREATEOBJECT('excel.application')
ox.Workbooks.Open('c:\result.xls')
ow = ox.ActiveWorkbook
? ow.Worksheets(1).cells(1,1).value
? ow.Worksheets(1).cells(1,2).value
? ow.Worksheets(1).cells(1,3).value
? ow.Worksheets(1).cells(1,4).value
? ow.Worksheets(1).cells(1,5).value
? ow.Worksheets(1).cells(1,6).value
? ow.Worksheets(1).cells(1,7).value
? ow.Worksheets(1).cells(1,8).value
? ow.Worksheets(1).cells(1,9).value
ow.Worksheets(1).cells(1,9).value = 'c!'
ow.Save()
ow.Close
ox.Quit
*-- This makes the Excel visible
*-- ox.Visible = .t.
|