>when I tried that I got "Member WORKSHEET does not evaluate to an object ?
>
>Any other ideas ?
oExcel = CreateObject("Excel.Application")
oExcel.Visible = 1 && for debugging
oExcel.Workbooks.Add()
oSheet = oExcel.ActiveSheet
oSheet.Cells(1,1) = "Hello!"
For additional commands within Excel, save a macro in Excel.
For inserting formulas, I recommend using R1C1 syntax, since generating a cell reference like AA41 is quite complicated.
Regards, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)