P
punter
Hi,
I'm pretty new to the macro world but getting better. I am puttin
together a macro that does some calculations and format functions. On
of the things I'm asking it to do is sum a column. The problem I'
running into is that the number of rows on the sheet will vary. I
there are more rows on a sheet than the one that I used to record th
macro it is summing in the wrong place. Here is how the sum functio
was recorded in the macro:
ActiveCell.FormulaR1C1 = "=SUM(R[-4127]C:R[-2]C)"
Question: How do I get excel to sum that column no matter how man
cells there are? Currently it is summing everything up to 4127 and no
beyond. I'm looking right now through the macro help but haven'
tripped across the answer yet.
Thanks as always,
Eddi
I'm pretty new to the macro world but getting better. I am puttin
together a macro that does some calculations and format functions. On
of the things I'm asking it to do is sum a column. The problem I'
running into is that the number of rows on the sheet will vary. I
there are more rows on a sheet than the one that I used to record th
macro it is summing in the wrong place. Here is how the sum functio
was recorded in the macro:
ActiveCell.FormulaR1C1 = "=SUM(R[-4127]C:R[-2]C)"
Question: How do I get excel to sum that column no matter how man
cells there are? Currently it is summing everything up to 4127 and no
beyond. I'm looking right now through the macro help but haven'
tripped across the answer yet.
Thanks as always,
Eddi