Could anyone tell me how to put a formula in a cell using VBA?
So, for example, I have numeric values in cells B3, B5, and B7. I want cell B9, which starts off as blank, to be given the formula: SUM(B3:B7).
(Cells B4 and B6 are blank).
However, I would like the sum formula in cell B9 to be relative, so that if I delete what is now column A, the sum will still work without me having to change the macro command.
Thanks,
MikeG
So, for example, I have numeric values in cells B3, B5, and B7. I want cell B9, which starts off as blank, to be given the formula: SUM(B3:B7).
(Cells B4 and B6 are blank).
However, I would like the sum formula in cell B9 to be relative, so that if I delete what is now column A, the sum will still work without me having to change the macro command.
Thanks,
MikeG