J
John
Hello,
I am trying to sum a variety of cells in MS Excel using
VBA. I want to have the ability to change the cells that I
sum. But I cannot use an autosum formula because the cells
are not next to where I want the summation. Additionally I
would like a Sum formula to be placed inside the cell and
not just a number.
I would like to use a range formula similar to
range(activecell.offset(0,-10),selection.end
(xltoright)).select
to select the area I want to SUM. Then sum that range.
Is it possible to use Summation formulas in VBA this way.
I have only been able to use them with specific cell
assignments?
Thanks
I am trying to sum a variety of cells in MS Excel using
VBA. I want to have the ability to change the cells that I
sum. But I cannot use an autosum formula because the cells
are not next to where I want the summation. Additionally I
would like a Sum formula to be placed inside the cell and
not just a number.
I would like to use a range formula similar to
range(activecell.offset(0,-10),selection.end
(xltoright)).select
to select the area I want to SUM. Then sum that range.
Is it possible to use Summation formulas in VBA this way.
I have only been able to use them with specific cell
assignments?
Thanks