+ Reply to Thread
Results 1 to 3 of 3

Nested Controll Combo Box issues

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    Brisbane, Autralia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Nested Controll Combo Box issues

    Hi

    I am having a issue with my nested combo boxes on Excel 2003. The ListfillRange of the 2nd combo box is a named range populated using the Offset formula from the value selected in the first combo box. All settings are in the Properties except for a VBA line which resets the default text for the 2nd combo box after an item is selected in the 1st combo box (using ListIndex = 0).

    The Issue: The drop down list does not return all values in the named offset range. The number of rows seems to be restricted by the rowcount of the combo box 1 selection from when the spreadsheet is first opened. If I save and open the sheet with the combobox_1 item with the most number of rows (in this scenario the full rowcount appears under combobox_2), and subsequently select an item with less linked rows, the combobox_2 drop down shows blanks and duplicates (not in the source data) - pic is attached. Is there a way to reset the Combobox_2 dropdown settings at the time of selecting an item in Combobox_1?

    Thanks is advance.
    Attached Images Attached Images

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Nested Controll Combo Box issues

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-19-2009
    Location
    Brisbane, Autralia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Nested Controll Combo Box issues

    Example attached:

    To clarify the issue: The Combo box is not displaying all the rows available in the ListFillRange.

    Background: The spreadsheet uses 2 nested combo boxes. The first combo displays a list of types of change, then the second displays the list of subtypes restricted by the selection in combo box 1.

    Steps to recreate the Issue in the attached workbook:

    1 – Open workbook and leave Combo box 1 at the previously saved value.
    2 – Open Combo box 2 and note the number of rows available to select from
    3 – Select a new value in Combo box 1
    4 – Re-open Combo box 2. You will notice that the number of lines displayed in the combo box 2 drop down are the same as in Step 2. If the source data actually has less rows than at step 2, the displayed list shows blank lines and if you scroll up and down, the list gets completely scrambled (duplicates appear etc). If the source data has more rows than at Step 2, then the additional lines do not appear and cannot be selected. Saving the Workbook with the changed Combo box 1 value (step 4) and then re-opening the workbook - the opposite will occur ie the correct number of rows will display.

    It appears that the List of values displayed row count for Combo box 2 is not reset after changing Combo box 1.

    Question: Is there a combo box attribute that can be reset each time the drop down arrow is clicked to ensure the displayed number of rows is correct?
    Thanks
    Attached Files Attached Files
    Last edited by nzjohnny; 05-20-2009 at 07:14 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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