+ Reply to Thread
Results 1 to 11 of 11

ListFillRange from Table column

  1. #1
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    ListFillRange from Table column

    What is the format for a ListFillRange property that needs to come from a column in a table? In my case, table is on as sheet called Parameters, the table name is CSRTable, and the column header is Name, which is also the 1st column.

    Thanks!
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: ListFillRange from Table column

    Untested but perhaps
    CSRTable[Name]
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: ListFillRange from Table column

    No, afraid not. Also tried Parameters!CSRTable[Name], and it didn't work either.

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

    Re: ListFillRange from Table column

    For the ListFillRange of what exactly?

    If it's for a combobox/listbox on a sheet then I'm afraid you might be out of luck as you can't use table notation, you would have to use the usual sheet/range reference.
    If posting code please use code tags, see here.

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: ListFillRange from Table column

    Ok, will do. Thanks.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: ListFillRange from Table column

    You could perhaps create a name that uses the table address, then use the name in the listfillrange? That should make it dynamic.

  7. #7
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: ListFillRange from Table column

    That does work! I had to create the name using Name Manager, rather than just selecting the range and naming it. Selecting the name resulted in a Refers To value of "=CSRTable[Name]", which still didn't work, so I explicitly changed it to refer to "=$A$4:$A:11", and that worked. I didn't expect it to work dynamically with table row additions/deletions, but it apparently does.

    Thanks!

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

    Re: ListFillRange from Table column

    Does the list that appears in the listbox/combobox dynamically change when you add/delete from the table?

  9. #9
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: ListFillRange from Table column

    Yes and no. Combobox values don't automatically update unless you close and reopen the workbook. I'm sure there's a way to refresh them through code, but I'm not concerned about that with this app, as the table is an employee list, and won't change very often.

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

    Re: ListFillRange from Table column

    If that's what you need to do then it might be an idea to add code to populate the combobox when the workbook opens, then you could use table referencing.

  11. #11
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: ListFillRange from Table column

    No need. As I said above in response to xlnitwit, it works, and I marked the thread as solved. Thanks though.

+ 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. ListfillRange
    By jaganxlri in forum Excel General
    Replies: 1
    Last Post: 12-26-2012, 07:06 AM
  2. ListFillRange not working
    By ExcelArchitect in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2009, 06:17 PM
  3. ComboBox Listfillrange
    By haddock in forum Excel General
    Replies: 2
    Last Post: 01-26-2009, 05:44 PM
  4. Combobox ListFillRange
    By jwiggers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2007, 12:54 AM
  5. ListFillRange not working
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2005, 11:05 AM
  6. Listbox: ListFillRange
    By RDK in forum Excel General
    Replies: 3
    Last Post: 06-16-2005, 08:05 AM
  7. [SOLVED] How to Set ListFillRange to Another Sheet
    By Chaplain Doug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2005, 09:06 AM
  8. [SOLVED] I can't figure out listfillrange
    By LostinVA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2005, 11:06 AM

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