S
spowel4
I need some help with this please: I'm looping through some data to
total some figures. Each time the total is calculated I need to
insert that total into an excel spreadsheet cell, A2 for instance.
The next time the total would be written to cell A3 and so on. Here
is how I create the spreadsheet:
oExcel = New Microsoft.Office.Interop.Excel.Application
oBook = oExcel.Workbooks.Add
oSheet = CType(oBook.Worksheets(1),
Microsoft.Office.Interop.Excel.Worksheet)
I can't quite figure out how to write each total to a different cell.
total some figures. Each time the total is calculated I need to
insert that total into an excel spreadsheet cell, A2 for instance.
The next time the total would be written to cell A3 and so on. Here
is how I create the spreadsheet:
oExcel = New Microsoft.Office.Interop.Excel.Application
oBook = oExcel.Workbooks.Add
oSheet = CType(oBook.Worksheets(1),
Microsoft.Office.Interop.Excel.Worksheet)
I can't quite figure out how to write each total to a different cell.