Hi there
I have exported a recordset to Excel from Access.
What is the easiest way to write vba coding that will sum the columns
Lets say I have 15 columns and 300 rows
I pick up the amount of rows with:
totalrows = rs.recordcount
in a nested FOR loop how to I refer to i.e
objWkb.activesheet.cells(lastrow, j) = sum(A2:A300) how do I reference this sum formula in the FOR loop to refer to my row and cell?
Currently I am looping through all the rows and totaling each row in the column. There must be an easier way?
Help will be much appreciated..!
I have exported a recordset to Excel from Access.
What is the easiest way to write vba coding that will sum the columns
Lets say I have 15 columns and 300 rows
I pick up the amount of rows with:
totalrows = rs.recordcount
in a nested FOR loop how to I refer to i.e
objWkb.activesheet.cells(lastrow, j) = sum(A2:A300) how do I reference this sum formula in the FOR loop to refer to my row and cell?
Currently I am looping through all the rows and totaling each row in the column. There must be an easier way?
Help will be much appreciated..!