+ Reply to Thread
Results 1 to 4 of 4

User Form Dependent Dropdown (ComboBox)

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    Des Moines, IA
    MS-Off Ver
    2010
    Posts
    62

    User Form Dependent Dropdown (ComboBox)

    Hi All,

    I currently have a userform with two different drop downs where I'm looking to have one of the drop downs (called subtype) be dependent on whats chosen from the other drop down (Called Type).

    I have about 10 named list (list1, list2, list3...) in which i will likely need a substitution function to remove the spaces from what's picked in the "Type" combobox (list 1, list 2, list 3...).

    Not sure if it's possible in VBA, but through data validation a subsitution/indirect function would be how I'd do it =INDIRECT(SUBSTITUTE(Type," ",""))..


    Thanks in advance!

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: User Form Dependent Dropdown (ComboBox)

    It would be easier for us to help you if you post a sample of your form and code. If you are doing what I think you are doing, and your lists are in a range of cells on a spreadsheet, you can use If/Then statements such as ....
    Please Login or Register  to view this content.
    . This might be totally incorrect as I don't know exactly what you are working with
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    01-09-2015
    Location
    Des Moines, IA
    MS-Off Ver
    2010
    Posts
    62

    Re: User Form Dependent Dropdown (ComboBox)

    Thanks for the response. This is correct, I have about 10 "primary type", with each type generating a list of about 40 or so "subtypes". Is it possible to identify the named range? So for instance:

    If ComboBox1.text = "TypeA" Then ComboBox2.Value = Range("Your range")

    Can "Your range" be pulled from the "lists" tab with the "TypeA" named range?

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: User Form Dependent Dropdown (ComboBox)

    If the list is in column A rows 1 - 10, then you could use Range("A1:A10"). So, it would look like this...
    Please Login or Register  to view this content.
    Last edited by gmr4evr1; 10-15-2015 at 04:50 PM. Reason: Corrected code...I had forgetten the .List

+ 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. Replies: 10
    Last Post: 05-30-2015, 01:33 PM
  2. Dependent list boxes in user form
    By jockey17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2014, 03:43 PM
  3. Calling a user form initialize sub when entering the form to populate combobox...
    By regupnorth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2012, 07:24 AM
  4. Dropdown Combobox dependent on another
    By loknath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2012, 05:08 AM
  5. Dependent Combobox on Form not updating from dynamic range
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2011, 12:59 PM
  6. Transfer User form data to a worksheet w.r.t. combobox item on the form
    By nm766 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 12:43 PM
  7. transferring combobox value from one user form to populate combobox on another
    By smartphreak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2010, 10:12 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