G
Guest
I have a formula (written by someone else) that takes a column and makes a
dynamic named range based on how many rows of data there are in a different
column. The code is:
ActiveWorkbook.Names.Add "TaxRegime", _
"=Central_Benefit!$IC$1:INDEX(Central_Benefit!$IC$1:$IC$999,COUNTA(Central_Benefit!$K$1:$K$999))"
My question is, how can I take this formula and make it dynamic for the
column as well? I want to do a search for the the column header
"tax_regime", then use that instead of saying column IC. (I hope that makes
sense).
Any help is very much appreciated.
dynamic named range based on how many rows of data there are in a different
column. The code is:
ActiveWorkbook.Names.Add "TaxRegime", _
"=Central_Benefit!$IC$1:INDEX(Central_Benefit!$IC$1:$IC$999,COUNTA(Central_Benefit!$K$1:$K$999))"
My question is, how can I take this formula and make it dynamic for the
column as well? I want to do a search for the the column header
"tax_regime", then use that instead of saying column IC. (I hope that makes
sense).
Any help is very much appreciated.
