+ Reply to Thread
Results 1 to 7 of 7

Excel Tables - Dynamically naming Table Names?

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Hyderabad India
    MS-Off Ver
    Office 2019
    Posts
    11

    Post Excel Tables - Dynamically naming Table Names?

    Is it possible to dynamically name an Excel Table?

    Scenario:

    I have 100 excel tables in a worksheet. Those tables have employee data - empID, empName etc. Then, I am consolidating all the tables in a consolidated table in masterEmp table using VBA.


    If I have to name each excel table manually, it will take me a lot of time. If there was a way to name an excel table linking it to a field in the table ex. empID, then my tables will be named as per empID which is an ideal scenario.

    Please help?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel Tables - Dynamically naming Table Names?

    Hi abhimails,

    I think you are looking for a VBA solution. This site is close to what you want:
    https://www.dingbatdata.com/2017/11/...ects-with-vba/
    The idea is you can write VBA and access each table on a sheet using it's index number.

    Are you sure you have 100 tables on a single sheet? Each table has a blank row and column to set it away from other data? Are you sure?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-25-2014
    Location
    Hyderabad India
    MS-Off Ver
    Office 2019
    Posts
    11

    Re: Excel Tables - Dynamically naming Table Names?

    Thanks MarvinP for prompt response.

    Yes Indeed, I have 100 distinct excel tables in a worksheet. Each table has details of 1 emp with empID, Name etc..

    VBA won't serve my purpose as I am trying to name my tables dynamically (each excel tableName will be empID).

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel Tables - Dynamically naming Table Names?

    Can you show me about 4 of your tables and where the employee ID is in each? Maybe a quick VBA on your data and then remove the VBA might work. Also some sort of FlashFill may also do the trick without VBA.
    Call the employee "Name1", "Name2", etc and attach a sample with a short column(s) or row(s) of what you have. I need to see how you have these arranged on your sheet.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel Tables - Dynamically naming Table Names?

    Are you sure you have version 2007 of Excel as naming tables got different in newer versions of excel. Read:
    https://support.office.com/en-us/art...2-44D21233B114

  6. #6
    Registered User
    Join Date
    09-25-2014
    Location
    Hyderabad India
    MS-Off Ver
    Office 2019
    Posts
    11

    Re: Excel Tables - Dynamically naming Table Names?

    Marvin, its Excel 2019.. it shows 2007 as default version if not updated. Sorry, I am new here..
    Attachment 675777

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Excel Tables - Dynamically naming Table Names?

    Please update your user profile (it's not a default setting - you filled it in when you first joined the forum, so please change it now).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamically link excel chartes and tables in ppt
    By aznabeel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-13-2019, 04:31 PM
  2. [SOLVED] Access 2010 to Excel table/queries to worksheets, then dynamically change worksheet names.
    By tragatz1 in forum Access Programming / VBA / Macros
    Replies: 9
    Last Post: 06-18-2019, 11:03 AM
  3. [SOLVED] Dynamically update tables in multiple sheets from master table
    By chssteakjedi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2017, 12:55 PM
  4. Creating Access tables with table names from excel cells
    By zubair57 in forum Access Tables & Databases
    Replies: 3
    Last Post: 01-18-2016, 07:05 PM
  5. [SOLVED] Dynamically use sheet names for pivot tables.
    By kleptilian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2016, 08:59 AM
  6. [SOLVED] Create continuous non blank table based on merge of separate dynamically filled tables
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2013, 04:15 PM
  7. Dynamically naming variables
    By jlt199 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2010, 04:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1