Results 1 to 2 of 2

ComboBox to automatically change based on another ComboBox

Threaded View

Anarchus ComboBox to automatically... 10-14-2016, 09:23 AM
mikerickson Re: ComboBox to automatically... 10-14-2016, 10:06 AM
  1. #1
    Forum Contributor
    Join Date
    10-03-2016
    Location
    Sydney, Australia
    MS-Off Ver
    MS 365
    Posts
    128

    ComboBox to automatically change based on another ComboBox

    Hi there,

    A slightly odd one, hopefully it makes sense.

    I have multiple ComboBox that currently work, they basically link to one another. There are more than the following, just a few examples of how it currently appears:

    ComboBox1 =
    Customer Service
    Service Provided

    ComboBox2 =
    (When "Customer Service" is selected)
    Compliment
    Complaints


    (When "Service Provided" is selected)
    Ad Hoc
    Value Added


    ComboBox3 =
    (When "Customer Service" and "Compliment" is selected)
    Feedback
    Suggestion


    (When "Customer Service" and "Complaint is selected)
    Incident
    Problem


    (When "Service Provided" and "Ad Hoc is selected)
    None
    Cost


    (When "Service Provided" and "Value Added" is selected)
    Timeliness
    Quality


    (Hopefully you can understand what the above means). None of that I want to change, there is no issue there.

    Basically if someone changes one of the options (i.e. ComboBox2), I want the next option (i.e. ComboBox3) to become blank again and when you click on the drop menu, the correct list appears for selection.

    That sounds confusing I know.
    ComboBox1 = "Customer Service"
    ComboBox2 = "Complaint"
    ComboBox3 = "Incident"

    Person changes their minds:
    ComboBox1 = "Customer Service"
    ComboBox2 = Change to "Compliment"
    ComboBox3 = Firstly, "Incident" is removed and becomes blank, then person clicks on drop menu and selects "Feedback" instead

    Currently, if the following VBA code, so not sure what I can add to do the above

    PrivateSub ComboBox1_DropButtonClick()
    If Me.ComboBox1.Value = "Customer Service" Then
    Me.ComboBox2.List = Array ("Complaint", "Compliment")
    ElseIf Me.ComboBox1.Value = "Service Provided" Then
    Me.ComboBox2.List = Array ("Ad Hoc", "Value Added")
    ElseIf Me.ComboBox2.Value = "Complaint" Then
    Me.ComboBox3.List = Array ("Incident", "Problem")
    ElseIf Me.ComboBox2.Value = "Compliment" Then
    Me.ComboBox3.List = Array ("Feedback", "Suggestion")
    ElseIf Me.ComboBox2.Value = "Ad Hoc" Then
    Me.ComboBox3.List = Array ("None", "Cost")
    ElseIf Me.ComboBox2.Value = "Value Added" Then
    Me.ComboBox3.List = Array ("Quality", "Timeliness")
    End If
    End Sub
    Last edited by Anarchus; 10-14-2016 at 09:32 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Userform: Change Combobox list based on a second ComboBox selection
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-11-2016, 03:45 PM
  2. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  3. [SOLVED] Code required to Auto Populate 3rd Combobox based on 02nd Combobox Selection
    By bimmy80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-14-2015, 03:56 AM
  4. [SOLVED] Change next ComboBox list based on previous ComboBox selection
    By SteveTheFish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2015, 11:23 PM
  5. Userform Combobox to populate form: Can I change the order of the columns in the combobox?
    By CraigWiggins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2014, 12:14 PM
  6. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  7. Getting a Combobox in VBA Excel to change based on a value of the first Combobox
    By msaunde2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 11:24 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