+ Reply to Thread
Results 1 to 15 of 15

Dynamically select List Object name

Hybrid View

  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Dynamically select List Object name

    Have you checked the names of the tables on worksheet 'DB'.?

    This small bit of code will print them all out to the Immediate Window (CTRL+G), along with their address so you can locate them.
    Sub ListTables()
    Dim lst As ListObject
    
        For Each lst In Worksheets("DB").ListObjects
            Debug.Print lst.Name & " - " & lst.DataBodyRange.Address
        Next lst
    
    End Sub
    If posting code please use code tags, see here.

  2. #2
    Registered User
    Join Date
    10-23-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Dynamically select List Object name

    I actually just did that and found I had the ListColumn name incorrectly (it is "Assets" in my actual workbook). Luckily I am too tired to want to break something but at least my issue is finally resolved!!

    Thanks for your help Norie.

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Dynamically select List Object name

    I actually just did that and found I had the ListColumn name incorrectly (it is "Assets" in my actual workbook). Luckily I am too tired to want to break something but at least my issue is finally resolved!!

    Thanks for your help Norie.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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