+ Reply to Thread
Results 1 to 6 of 6

Making Dependent ListBox or ComboBox from Pre-Made Validation List

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    32

    Making Dependent ListBox or ComboBox from Pre-Made Validation List

    I have not found success from my previous post; so I am thinking it is because my title from the other post was throwing people off.

    Essentially I have a validation list that populates from a list. I am going to put a ListBox or ComboBox on top of the validation list. How do I get the information in the validated list to automatically show up in the ListBox/ComboBox? I am unable to use the normal way of ranging the ComboBox/ListBox and has to be linked to the Validation List.

    An example is attached.

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-18-2014
    Location
    australia
    MS-Off Ver
    2015
    Posts
    43

    Re: Making Dependent ListBox or ComboBox from Pre-Made Validation List

    not sure i understand. you are saying, you want the listbox to display the same data as the validation list, correct?

    and you can't just set the listbox range to the same range as the validation list? (why?)

    you can set through VBA with
    listboxname.ListFillRange = ("=validationlist")
    note the = before the range declaration is important. a named validation range can be made dynamic as well.
    Last edited by ferday; 04-12-2017 at 08:45 PM.

  3. #3
    Registered User
    Join Date
    04-08-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Making Dependent ListBox or ComboBox from Pre-Made Validation List

    I have a UserForm that populates a department. Based on what department it is, the validation list automatically changes based on the SUBSTITUTION that relates to the department. For that reason the validation list has the list of information. The problem is that I hate how Validation list doesn't have a drop down arrow and I don't like doing the "fake arrow." In it's place I am wanting to put a ListBox on top of the validation list. I have done it before, I just can't remember how it to code it

    Essentially, I need the ListForm to mirror and update as soon as the Data Validation list does.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,636

    Re: Making Dependent ListBox or ComboBox from Pre-Made Validation List

    Set the ListFillRange property of list box to Sheet1!A1:A8.

    It that what you trying to do?

    Otherwise, where is your userform and etc?

  5. #5
    Registered User
    Join Date
    04-08-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Making Dependent ListBox or ComboBox from Pre-Made Validation List

    Based on the workbook I am using I cannot set the Range to be the list of data. I need the ListBox to update based on purely the Data Validation. The attachment above is an example of what I am dealing with. I made the list, created the data validation, and created the ListBox. I need the ListBox to update and populate based on what is in the DataValidation.

    I am trying to do this: List updates --> Validation List --> Validation List updates --> ListBox

    Not: List updatess --> ListBox

  6. #6
    Registered User
    Join Date
    04-08-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Making Dependent ListBox or ComboBox from Pre-Made Validation List

    Bump for answer.

+ 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. make on-page listbox dependent on combobox
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2016, 09:18 PM
  2. Making a FormControl ComboBox's list depend on the value of another ComboBox's Reference
    By dpsciarrino in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 11:52 PM
  3. [SOLVED] Creating a combobox to select and make active a sheet, then a listbox dependent on it
    By keiperg813 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2013, 04:43 AM
  4. Making third Validation list that is dependent in column A&B (with illegal characters)
    By Elainefish in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2013, 10:21 AM
  5. Replies: 6
    Last Post: 01-27-2012, 11:38 AM
  6. Another Dependent Data Validation Combobox
    By blacque in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2009, 03:40 AM
  7. Dependent Data Validation Combobox from Other Worksheet
    By blacque in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2009, 08:22 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