Combobox

  • Thread starter Thread starter Jim Lavery
  • Start date Start date
J

Jim Lavery

I want to show another userform based on the value in the combobox. Simple I
know. any ideas?
 
hi.
simple maybe. depends. but to answer the simplistic reguest....
Private Sub ComboBox1_Change()
If ComboBox1.Value = "something" Then
otherform.Show
End If
End Sub

regards
FSt1
 
This is for concept only. Without specific information no valid code could
be developed.

Private Sub UserForm_Click()
If Me.ComboBox1.Value = Range("A1").Value Then
UserForm2.Show
Unload Me
End If
End Sub
 
I think I'd just use something like:

Select case lcase(me.combobox1.value)
case is = "value1" : userform1.show
case is = "value2" : userform2.show
case is = "value3" : userform3.show
end select
 
Hi,

You could use something like this

Private Sub cboColors_Change()
Select Case Me.cboColors
Case "Red"
frmRed.Show
Case "Green"
frmGreen.Show
Case "Blue"
frmBlue.Show
End Select
End Sub

where you have three forms named frmRed, frmGreen, frmBlue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top