+ Reply to Thread
Results 1 to 5 of 5

Defining the list filll range for a combo box?

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Defining the list filll range for a combo box?

    How do I go about defining the list fill range for a combo box?

    I have created 2 list of named ranges on a worksheet I have called "Hidden Validations", yet when I add a combo box to my user form, the list fill range option isn't even showing under properties? It's just going from ControlSource to ListRows?

    Any ideas at all please?

    Many Thanks

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Defining the list filll range for a combo box?

    If you right-click on the combo box, select "Format Control". I'm using Excel 2007, so it may be worded differently. On the "Control" tab in the dialog box that appears, there is a box for "Input Range:". This is where you enter the named range or the exact range of the values you want to include in the drop-down list.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Defining the list filll range for a combo box?

    @majosum. I could be wrong but I believe the OP is talking about a combobox as part of a userform which is different than a form control combobox

    @mike ryan. You will need to populate the combobox on initialization of the userform. Let's say your named range is "Mike" then something like this would do.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Defining the list filll range for a combo box?

    @stnkynts That is exactly what I am hoping to do. I hope you don't mind but I copied your code (adjusting the defined range name) but get the following error : "Run-time error '1004': Method ' Range' of object'_Global'failed. Any thoughts?

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Defining the list filll range for a combo box?

    Hmm. I can only guess without having a copy of the workbook but I would guess that you have multiple sheets and the auto sheet reference is selecting the wrong sheet. Example: your range "Mike" is on Sheet 2 but you run the code when the active sheet is Sheet 1. It will try to find "Mike" in Sheet 1, which doesn't exist. Try specifying the Sheet and see if that helps;

    Please Login or Register  to view this content.

+ 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] defining a range subset based on a primary range for use in Median and Mode functions
    By Araise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2013, 06:39 PM
  2. Combo Box list of unique values in range
    By Jason_2112 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-10-2010, 02:10 PM
  3. Defining series range for named range
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2006, 04:05 PM
  4. Filtered list for Combo Box ListFillRange - Nested Combo Boxes
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2006, 08:20 AM
  5. [SOLVED] Combo Box List out of range error.
    By Kiran in forum Excel General
    Replies: 3
    Last Post: 07-06-2005, 09:05 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