saschmeling
New Member
- Joined
- Jun 27, 2012
- Messages
- 39
Have several regions on a sheet- trying to sum up cells in each region.
Can determine the row numbers for the first and last rows of each region but am looking for a way to use that in a sum formula.
Here is where I'm at:
in the selected cell, I would like to put a formula that will add all the cells from myRow:firstRow in the active column.
have tried this:
No Joy, Any suggestions?
Thanks,
Can determine the row numbers for the first and last rows of each region but am looking for a way to use that in a sum formula.
Here is where I'm at:
Range("A8").Select
myRow = ActiveCell.CurrentRegion.End(xlDown).Row
firstRow = ActiveCell.CurrentRegion.Rows(1).Row
Cells(myRow + 1, 4).Select
in the selected cell, I would like to put a formula that will add all the cells from myRow:firstRow in the active column.
have tried this:
ActiveCell.FormulaR1C1 = "=SUM([firstRow]c[myRow]c)"
No Joy, Any suggestions?
Thanks,