+ Reply to Thread
Results 1 to 3 of 3

Building dependent comboboxes on an existing userform

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Phoenix, Az
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    20

    Building dependent comboboxes on an existing userform

    I have nearly completed the work but now have been asked to "attempt" to build dependent comboboxes

    Ideally the end user will select a name from the REPRESENTATIVE field and it will auto select the SUPERVISOR and SITE LOCATION but leave the ability to make alterations (in the event that the entry needs to be changed)

    I have been able to limit the options using data validation but unsure how to write the code in VBA. I have attached a test database/userform and an example of how the information should be linked (see Sheet3)

    Note- this should be able to function for 700+ representatives, 30+supervisors, and 6 site locations.

    any assistance so I can finally put this project to bed would be great.
    Attached Files Attached Files
    Last edited by Sway1978; 04-20-2013 at 11:57 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Building dependent comboboxes on an existing userform

    See the attached, for an example.
    Notice on the UserForm initialize how Rep ComboBox gets Populated
    Notice the Combobox3_Change code

    Select from the Rep combobox and the textboxes populate
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Phoenix, Az
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    20

    Re: Building dependent comboboxes on an existing userform

    @davesexcel that looks fantastic - so the new text boxes replace the existing comboboxes I had created? I will have to play with the code for the email and loading to the sheet 1 but thank you for your assistance.

+ 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