+ Reply to Thread
Results 1 to 3 of 3

How do I change combobox to be dependent on OptionBox

  1. #1
    Registered User
    Join Date
    09-19-2021
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    15

    How do I change combobox to be dependent on OptionBox

    I'm trying to have the combobox to have a dropdown list with female names if the female optionbox is selected and vice versa if Male is selected.
    Please Login or Register  to view this content.
    obfem = option box for female
    obmale = option box for male
    cbname = combobox for names

    This is my code but it doesnt seem to work. How can I modify this?
    Last edited by shuxin; 09-21-2021 at 01:47 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: How do I change combobox to be dependent on OptionBox

    Please Login or Register  to view this content.
    I just don't quite understand the need of the sub UserForm_Activate,
    because usually I use the sub UserForm_Initialize then make one of the OptBut which I want as the default when the user form is launch to True.

    Something like this :
    Please Login or Register  to view this content.
    Last edited by karmapala; 09-21-2021 at 01:30 AM.

  3. #3
    Registered User
    Join Date
    09-19-2021
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    15

    Re: How do I change combobox to be dependent on OptionBox

    omg that works so well, thank you so much!

+ 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. Userform - dependent combobox to select worksheet to return search results and data change
    By ThePeoplesClub in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-29-2016, 01:27 PM
  2. [SOLVED] Dependent Combobox
    By Rui Farinha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2016, 12:02 PM
  3. Populate combobox dependent on contents of previous combobox
    By ed1967 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2014, 11:40 AM
  4. Populating combobox dependent on another combobox
    By JChaney17 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 12:36 PM
  5. [SOLVED] UserForm: ComboBox #2 dependent on ComboBox #1
    By TexasAggie12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2014, 10:41 AM
  6. [SOLVED] VBA ComboBox Value Dependent on Conditional Value from Another ComboBox
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 02:35 AM
  7. [SOLVED] Userform with two combobox dependent on one combobox
    By bigfoot007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2012, 01:01 PM

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