Combo Box Userform Selection To Open 2nd Combo Box

wpjensen

Board Regular
Joined
Mar 14, 2010
Messages
56
Macro Help
I have a Combo box Userform with selection A B C D dropdown. Want to be able to select any (in this example) B that opens a 2nd Combo Box Userform with all B's display., then able to select one from the B List

I have the 2 boxes working as desired but can't get the first box to select the appropriate (in this case B) in the 2nd Combo Box Userform.


Private Sub ComboBox1_Change()
Select Case ComboBox1.Value

Case "A"
ComboBox2.DropDown

Case "B"

Case "C"

Case "D"

End Select

End Sub



Private Sub Label1_Click()

End Sub

Private Sub UserForm_Initialize()

ComboBox2.AddItem "A"
ComboBox2.AddItem "B"
ComboBox2.AddItem "C"
ComboBox2.AddItem "D"

End Sub


Would also like some help on a macro for OK & Cancel button

Not sure whether I have explained this good enough, been working on this for a couple of weeks learning VB as I go

Wayne
<!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
<!-- controls -->
progress.gif
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,748
Messages
5,855,439
Members
431,732
Latest member
albertdi827

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top