dotchieJack
Member
Hello every body.
I have 15 comboboxes and 2 textboxes
If I choose a value in one of these comboboxes (value = Mdif) then it should fill textbox 1
but if textbox 1 is already filled it should fill textbox 2 and if the 2 textboxes are filled and someone chooses for the 3 time the value Mdif then they should get a messagebox textboxes are full
Something in this direction
Thanks in advance
I have 15 comboboxes and 2 textboxes
If I choose a value in one of these comboboxes (value = Mdif) then it should fill textbox 1
but if textbox 1 is already filled it should fill textbox 2 and if the 2 textboxes are filled and someone chooses for the 3 time the value Mdif then they should get a messagebox textboxes are full
Something in this direction
Code:
Private Sub ComboBox1_Change()
If ComboBox1.Value = "Mdif" Then
TextBox1.Value = Label1.Caption
Else
If TextBox1.Value > 0 Then
If ComboBox1.Value = "Mdif" Then
TextBox2.Value = Label1.Caption
End If
End If
End If
End Sub