Hello! I am totally new within the VBA universe, so i hope you guys can help me out.
So I want to create a ComboBox dropdown, where I have a few selection options availaible. So depending on what is picked on ComboBox1 a certain selection option is shown in ComboBox2.
Here is the code use so fare.
Another issue is, that when I go out of Design mode, and try it out, I can see the selection availaible in ComboBox1, but it doesnt stay in the box when selecting it. The ComboBox Remains Blank.
I am totally new, so it is clear that i am doing something wrong.
So I want to create a ComboBox dropdown, where I have a few selection options availaible. So depending on what is picked on ComboBox1 a certain selection option is shown in ComboBox2.
Here is the code use so fare.
Code:
Sub ComboBox1_Change()
Me.ComboBox1.Clear
Dim Version1 As String
Dim Version2 As String
Dim Version3 As String
Dim Version4 As String
Version1 = "OIML R51 1996 (Old EU)"
Version2 = "OIML R51 2006 (New EU)"
Version3 = "NMIA (AU)"
Version4 = "NIST (US)"
Me.ComboBox1.AddItem Version1
Me.ComboBox1.AddItem Version2
Me.ComboBox1.AddItem Version3
Me.ComboBox1.AddItem Version4
If CombBox1 = Version1 Then
Me.ComboBox2.AddItem "Y(a)"
End If
End Sub
Another issue is, that when I go out of Design mode, and try it out, I can see the selection availaible in ComboBox1, but it doesnt stay in the box when selecting it. The ComboBox Remains Blank.
I am totally new, so it is clear that i am doing something wrong.