13.04.2021, 16:53
Guten Tag Community,
Hintergrund:
1x Userform,
2x ComboBox
2x TextBox,
2 Tabellen (Tabelle1 & Tabelle3)
Ich habe versucht, 2 x Combox voneinander getrette Tabellen anzusprechen,
ohne erfolg.
1 set klappt ohne Probleme:
1xComboBox1
1xTextBox1
1xTabelle1
END
2 set klappt nicht:
1xComboBox3
1xTextBox3
1xTabelle3
Beim Ausführen, von ComboBox3,
gibt er in TextBox3 das ergbnix aus Tabelle1, er soll aber aus Tabelle3
Kann mir einer etwas weiter helfen?
Gruß
Hintergrund:
1x Userform,
2x ComboBox
2x TextBox,
2 Tabellen (Tabelle1 & Tabelle3)
Ich habe versucht, 2 x Combox voneinander getrette Tabellen anzusprechen,
ohne erfolg.
1 set klappt ohne Probleme:
1xComboBox1
1xTextBox1
1xTabelle1
END
Code:
Private Sub UserForm_Initialize()
With Worksheets("Tabelle1")
Me.ComboBox1.Clear
Me.ComboBox1.List = .Range("C2:C" & .Cells(Rows.Count, 2).End(xlUp).Row).Value
End With
End Sub
Private Sub ComboBox1_Change()
With Me
TextBox1 = Cells(ComboBox1.ListIndex + 2, 2)
End With
End Sub2 set klappt nicht:
1xComboBox3
1xTextBox3
1xTabelle3
Code:
Private Sub UserForm_Initialize()
With Worksheets("Tabelle1")
Me.ComboBox1.Clear
Me.ComboBox1.List = .Range("C2:C" & .Cells(Rows.Count, 2).End(xlUp).Row).Value
End With
With Worksheets("Tabelle3")
Me.ComboBox3.Clear
Me.ComboBox3.List = .Range("C2:C" & .Cells(Rows.Count, 2).End(xlUp).Row).Value
End With
End Sub
Private Sub ComboBox1_Change()
With Me
TextBox1 = Cells(ComboBox1.ListIndex + 2, 2)
End With
End Sub
Private Sub ComboBox3_Change()
With Me
TextBox3 = Cells(ComboBox3.ListIndex + 2, 2)
End With
End SubBeim Ausführen, von ComboBox3,
gibt er in TextBox3 das ergbnix aus Tabelle1, er soll aber aus Tabelle3
Kann mir einer etwas weiter helfen?
Gruß

Userform Mehre Tabelle ansprechen
