+ Reply to Thread
Results 1 to 6 of 6

Change ComboBox Options

  1. #1
    Forum Contributor
    Join Date
    10-28-2011
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    114

    Change ComboBox Options

    Hi all

    I have 2 comboboxes on a UserForm and i'm struggling to code out the options I would like to see based on the first selection.

    For example:

    1 - If you select option 1 from combobox1, then combobox2 options displays 'a', 'b' and 'c'

    2 - If you select option 2 from combobox1, then combobox2 options displays 'x', 'y' and 'z'



    Many thanks
    Last edited by sgp; 12-13-2011 at 07:49 AM.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Change ComboBox Options

    hi,
    as an option try it and see if it helps you
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Forum Contributor
    Join Date
    10-28-2011
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Change ComboBox Options

    This did help me - thanks john

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Change ComboBox Options

    glad to be of help!

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Change ComboBox Options

    which can also be written as:

    Please Login or Register  to view this content.
    But my preference:
    Please Login or Register  to view this content.



  6. #6
    Forum Contributor
    Join Date
    10-28-2011
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Change ComboBox Options

    Hi snb,

    Thanks for the code - Just a quick question - How could I show the same in excel alone and not vba.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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