+ Reply to Thread
Results 1 to 8 of 8

Naming Excel tables from an Excel list.

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Dexter, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Naming Excel tables from an Excel list.

    I have Excel workbooks with many worksheets that contain 100+ tables. I like to give my tables meanfuling names and not use the Excel generated names, but this is a tedious task. I would like to create a list of table names on an Excel worksheet and then be able to pull one of those names each time I create a new table. Is this possible? I am new to VBA and macros.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Naming Excel tables from an Excel list.

    put names in column A from A2 to A4 then try this code
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Naming Excel tables from an Excel list.

    Hi, patel45,

    then be able to pull one of those names each time I create a new table
    Your code does that?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Naming Excel tables from an Excel list.

    see attachment
    Select your range that should be a table and run the macro "MakeMySelection..."
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Naming Excel tables from an Excel list.

    Hi, bsalv,

    nice sample, well done. But I would have used a Label instead of a Textbox for showing the explanatory text.

    Ciao,
    Holger

  6. #6
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Naming Excel tables from an Excel list.

    ok, next time I'll do so. Thanks.

  7. #7
    Registered User
    Join Date
    02-21-2014
    Location
    Dexter, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Naming Excel tables from an Excel list.

    Thanks everyone.

    bsalv, I get a run-time error "A table cannot overlap another table". Any ideas?

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Naming Excel tables from an Excel list.

    Hi, ztigges,

    Any ideas?
    Tables may not overlap if they are to have all the functions available - simple as that. Or you transfer the tables back to ranges where you loose the functions of a table. Your choice.

    Ciao,
    Holger

+ 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. [SOLVED] Excel VBA - Issue in Naming Filtered Range on a Filtered List.
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 01:17 PM
  2. Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...
    By SteHawk85 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-05-2012, 10:14 AM
  3. [SOLVED] Excel 2007 : List differences between tables
    By Yathish.d in forum Excel General
    Replies: 6
    Last Post: 07-29-2012, 12:19 AM
  4. Naming multiple name ranges in a long list of excel values in one sheet
    By melancholic93 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2012, 11:21 PM
  5. Naming the Pivot tables
    By easycapital in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2008, 07:26 PM

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