A
Aaron
I've got this
LastRow = Cells(Rows.Count, "H").End(xlUp).Row
Set rng = Range("H2:H" & LastRow)
ActiveCell.Formula = "=SUBTOTAL(9," & rng.Address & ")"
Which gives me this on the spreadsheet:
=SUBTOTAL(9,$H$2:$H$1122)
But I want this:
=SUBTOTAL(9,H2:H1122)
How do I stop the $?
LastRow = Cells(Rows.Count, "H").End(xlUp).Row
Set rng = Range("H2:H" & LastRow)
ActiveCell.Formula = "=SUBTOTAL(9," & rng.Address & ")"
Which gives me this on the spreadsheet:
=SUBTOTAL(9,$H$2:$H$1122)
But I want this:
=SUBTOTAL(9,H2:H1122)
How do I stop the $?