JSMITH242B
Programmer
Hi Group,
I have an array of data which I need to export to an Excel Template which I've created.
I cribbed the following routine. On inspecting the values for the parameters they are correct. Data is posted to the excel spreadshett but a record per column and not a record per row. I need to transpose this I think.
I've tried swapping the irow, icol variables around but to no avail.
Does anyone know how I can get an array of data into an Excel template? The columns are fixed but there could be many records.
public sub insertArray(arrData, istartrow, istartcol, irow, icol)
ExcelSheet.Cells(istartrow, istartcol).Resize(irow, (icol + 1)).Value = arrData
end sub
Any pointers?
TIA
Jackie
I have an array of data which I need to export to an Excel Template which I've created.
I cribbed the following routine. On inspecting the values for the parameters they are correct. Data is posted to the excel spreadshett but a record per column and not a record per row. I need to transpose this I think.
I've tried swapping the irow, icol variables around but to no avail.
Does anyone know how I can get an array of data into an Excel template? The columns are fixed but there could be many records.
public sub insertArray(arrData, istartrow, istartcol, irow, icol)
ExcelSheet.Cells(istartrow, istartcol).Resize(irow, (icol + 1)).Value = arrData
end sub
Any pointers?
TIA
Jackie