+ Reply to Thread
Results 1 to 6 of 6

Userform Combobox

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Userform Combobox

    In a Userform, I need to have two combo-boxes dependent on each other. The first will contain Range "Material", the second will contain a range depending on the selection of the first box. The ranges available for the second box will be "Stainless_4", "Stainless_2B", "Mild", "AL_3003", "Lexan", "Delrin", "UHMW", and "Special". I've tried getting this to work out using the code below, but it just doesn't happen.

    Can anyone help?!

    Please Login or Register  to view this content.
    Last edited by bwestfall; 09-26-2012 at 11:13 AM. Reason: Forgot to mention this is in a userform

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Userform Combobox

    If the comboboxes on you worksheet are ActiveX comboboxes then the following should be all you need

    Please Login or Register  to view this content.


    *****

    sorry just realized this was on a userform, the following should work for you:

    Please Login or Register  to view this content.
    Replace Sheet1 with the name of the worksheet that contains the named ranges
    Last edited by rvasquez; 09-26-2012 at 11:18 AM.

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Userform Combobox

    rvasquez:

    I apologize, I forgot to mention this is in a Userform. So the first combo box is referencing a named range ("Material"), and the second is going to be depending on the selection from the first combo box.

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Userform Combobox

    No, sorry I forgot to read your actual thread title. My last post has been updated for you.

  5. #5
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Userform Combobox

    Wow, thank you so much. I looked everywhere for this.

  6. #6
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Userform Combobox

    No problem! Thanks for the star tap!

+ 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