m4trix
asked on
Change Header names in DataTable (Structured References) - Excel 2007+
I have a large data table in Excel 2010. If I add a new column, it defaults the name of that column to "Column#". Is there any way to change the name?
So for example if I put a formula in cell A4 referencing cell D4 (which is part of a data table), the reference will become "=[@Column3]" for example. I want to change that to "=[@mycolname]"
Any easy way to do this? I'm comfortable with VBA but was hoping for a non VBA solution
Thanks!
So for example if I put a formula in cell A4 referencing cell D4 (which is part of a data table), the reference will become "=[@Column3]" for example. I want to change that to "=[@mycolname]"
Any easy way to do this? I'm comfortable with VBA but was hoping for a non VBA solution
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes - that's not difficult to do, but I'd need to know what your requirement was - for example how would you trigger the rename, what column, what new name, etc
ASKER
It's static - a one time thing. I'm pretty proficient in VBA so it was no big deal. For anyone searching behind this, I simply created a loop that went something like this:
ActiveSheet.ListObjects(1) .ListColum ns(x).Name = "new_col_name"
where x is the column # you wish to rename
ActiveSheet.ListObjects(1)
where x is the column # you wish to rename
ASKER
I think the only way to change them without showing the column headers is through VBA though...