I was wondering if you could please help me find a way to write a vba code that sums dynamic ranges in different tables.
I'm trying to sum values from different tables (whose quantity of rows will change).
The tables are all on the same sheet and look like this:
I've tried to write the code via macro recorder (please see below), however, I'm struggling to find as to how I can make it dynamic.
Range("B3").Select
ActiveCell.FormulaR1C1 = "=SUM(R[6]C:R[9]C)"
Range("B4").Select
ActiveCell.FormulaR1C1 = "=SUM(R[12]C:R[14]C)"
Range("B5").Select
ActiveCell.FormulaR1C1 = "=SUM(R[17]C:R[19]C)"
Thanks for your help!
