Code:
ComboBox1.Clear
ComboBox1.AddItem "Montag"
ComboBox1.AddItem "Dienstag"
ComboBox1.AddItem "Mittwoch"
If ComboBox1.Text = "Montag" Then
ComboBox2.Clear
ComboBox2.AddItem "12.00 Uhr": ComboBox2.AddItem "13.00 Uhr"
End If
If ComboBox1.Text = "Dienstag" Then
ComboBox2.Clear
ComboBox2.AddItem "14.00 Uhr": ComboBox2.AddItem "15.00 Uhr"
End If
If ComboBox1.Text = "Mittwoch" Then
ComboBox2.Clear
ComboBox2.AddItem "16.00 Uhr": ComboBox2.AddItem "17.00 Uhr"
End If
Kann mir jemand sagen, ob der Code richtig ist oder nicht und wie der Befehl lautet, damit beim Öffnen des ComboBox-Menüs die 1. ComboBox gefüllt wird und bei der Auswahl des Kritiriums automatisch die 2. ComboBox gefüllt wird.
Gruß und Danke für die Hilfe
Gereon