+ Reply to Thread
Results 1 to 3 of 3

Refreshing a userform on Combobox selection

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Refreshing a userform on Combobox selection

    I have two comboboxes on a userform. I want the selection of combobox2 to change based on the selection of combobox1. For example, If combobox1 has 1,2,3 as options and I pick 1 I want combobox2 to have options red, blue, green. If I pick 2 I want combobox2 to have options orange, purple, yellow. I know how to fill the comboboxes I just need to know how to refresh the userform when a combobox1 selection has been made so that combobox2 will reflect the corresponding options.
    Last edited by bishoposiris; 02-14-2016 at 06:08 PM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Refreshing a userform on Combobox selection

    You don't say where these options come from, so will assume they're hard coded.

    As an example, add a userform with 2 ComboBoxes, both with the default names and paste the following into the userform code window.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Re: Refreshing a userform on Combobox selection

    I'm sure this would work but I ended up using a ComboBox_Change() sub instead. My code:

    Please Login or Register  to view this content.
    This works as intended. Every time a new Level 1 selection is made the Level 2 selection is changed and refreshed. Thanks for you reply.

+ 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. 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
  2. UserForm ComboBox selection to activate WorkSheet selection row.
    By excelV3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2015, 12:35 PM
  3. [SOLVED] Selection of Worksheets on a UserForm ComboBox.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-25-2015, 05:13 PM
  4. [SOLVED] Userform - move column according to combobox selection
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2014, 11:39 AM
  5. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  6. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  7. userform combobox fills from selection on sheet
    By mdshotgun in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-28-2011, 05:45 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