I am a beginner user to Visual Basic and am having trouble obtaining a total for a range of data in a single column where the number of rows will changes each time the macro is run? The only formula I can find is for a fixed range:
ActiveCell.FormulaR1C1 = "=SUM(R[-19]C:R[-1]C)"
What would be the alternative to this so that it doesn't have a fixed range to total?
ActiveCell.FormulaR1C1 = "=SUM(R[-19]C:R[-1]C)"
What would be the alternative to this so that it doesn't have a fixed range to total?