+ Reply to Thread
Results 1 to 6 of 6

ComboBoxes and ListFiillRange

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    615

    ComboBoxes and ListFiillRange

    Having to reacquaint myself with comboboxes and I find myself stumbling on basics.

    My first discovery that confuses me is that it appears the only combobox that allows for autofill (search as you type) is the ActiveX version. Is this right? I had been trying to steer away from any ActiveX involvement as I noted cautions when using them on worksheets.

    The next problem is proper naming for the ListFillRange. On another sheet, same workbook, I have a table. If I try to reference a column of values in that table in any method other than SheetName!A3:A250, it simply disappears. For instance, tablename[column name] or more exact MasterSchedule[Names]. What am I running into? Any pointers to a reliable, concise refresher on comboboxes?

    Later I intend to feed the item selection combobox from another selection process, and I am hoping to simply use a validation drop down of three or four items, so I need to get my work with the combobox that is doing all the work down right first.

    Thank-you!

  2. #2
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: ComboBoxes and ListFiillRange

    Is this what you are looking for
    Fill ComboBox with range on other sheet:
    Please Login or Register  to view this content.
    clear the list:
    Please Login or Register  to view this content.

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

    Re: ComboBoxes and ListFiillRange

    brucemc777

    tablename[column name] isn't a range.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    615

    Re: ComboBoxes and ListFiillRange

    Well, I guess to sort it out...

    On one sheet I have a table. I want to use a column from that table as my range. As you probably know, if I try to name that range within the table in the Name Box (probably an actual name for it other than what I am making up), the name simply disappears when I press enter after typing it in. I presumed that this was because I am violating a rule dealing with attempting to name a portion of a table, so I am looking for some other method. I could stipulate the cell range, but I doubt that would dynamically resize if I added to (or deleted from) the main table. So that is what I want to achieve in what I am doing, and I also want to learn the can's and can-not's of dealing with this situation.

    Thank-you!

    P.S. And time-allowing I will get the example up that is causing me trouble in using "FIND" that forced me to work around using "Match" in my VBA, as I really need to understand that one also!)

  5. #5
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: ComboBoxes and ListFiillRange

    You can make it dynamically by not putting anny text or value under the cells that contain the items that you want to fill with.
    Now you can determine last item and create the (dynamic) range.

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

    Re: ComboBoxes and ListFiillRange

    You aren't violating anything to do with tables, if you are violating anything it's using something that isn't a range reference for ListFillRange

    If you do want to populate using a table you could easily do it in code.

    PS A common problem with VBA Find is ommitting arguments.
    When you do that the missing arguments take their values from the previous Find which VBA has kindly remembered.

+ 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. Comboboxes example
    By cv24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2012, 08:49 PM
  2. Comboboxes
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2009, 08:40 AM
  3. OLE comboboxes
    By Mikkan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2005, 08:05 PM
  4. Need help with ComboBoxes.
    By rosemary in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-08-2005, 08:05 PM
  5. [SOLVED] Comboboxes
    By Darren in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2005, 02:06 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