Hi All,
Is it possible to use both relative and absolute cell references in a subtotal macro?
We're trying to create a subtotal within our macro that uses cell E3 as the absolute and the cell above the active cell as the relative reference. I just can't work out the syntax (if it's even possible!!)
I get a compile error when I use the following:-
ActiveCell.FormulaR1C1 = "=SUBTOTAL(9,"E3":R[-1]C)"
Can anybody point me in the right direction? And apologies if this has been posted previously - none of my searches returned a hit.
Is it possible to use both relative and absolute cell references in a subtotal macro?
We're trying to create a subtotal within our macro that uses cell E3 as the absolute and the cell above the active cell as the relative reference. I just can't work out the syntax (if it's even possible!!)
I get a compile error when I use the following:-
ActiveCell.FormulaR1C1 = "=SUBTOTAL(9,"E3":R[-1]C)"
Can anybody point me in the right direction? And apologies if this has been posted previously - none of my searches returned a hit.