Is there any way to make table names local?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,532
Office Version
  1. 365
Platform
  1. Windows
I often need to have multiple copies of a sheet, such as for different years. But when I make a copy of a sheet containing a table, Excel renames the table by adding a number. This is because Excel makes all table names global. If the name I gave to the table in the first sheet was "TableRatings", the name in the new sheet might be "TableRatings4" and in the next copy of the sheet, it might be "TableRatings45".

This causes me some problems. If I need to add a new column that will contain any references to data in the table, I am never sure which table is in this sheet.

This does not happen with local names.

I wish Excel allowed me to decide whether the table name should be local or global. Is there any way to do that?
 
justl expressions. ???

What are expressions?
As Mark explained, I meant an excutable expression (or equation or formula). My point was that I am not using VBA code, which is what your post contains. So I was asking how it answers my question about how to make table names local.

Is that clearer? Can you elaborate or explain how your reply (that code) addresses my question?

Thanks
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I was just thinking of using the Table Listobjectnumber and not the Listobject name

Like Sheets("Alpha").Listobjects(1)
Not sure that would help you.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top