Private
Sub
ComboBox1_DropButtonClick()
Dim
intz
As
Integer
Dim
Bereich1
As
Range
intz = ThisWorkbook.Worksheets(
"Menu_1_Auswahl"
).Range(
"A"
& Rows.Count).
End
(xlUp).row
Set
Bereich1 = Range(Worksheets(
"Menu_1_Auswahl"
).Cells(2, 1), Worksheets(
"Menu_1_Auswahl"
).Cells(intz, 1))
ComboBox1.RowSource = Bereich1.Address(External:=
True
)
If
ComboBox1.Text =
""
Then
TextBox6.Value = ThisWorkbook.Worksheets(
"Menu_1_Auswahl_DE"
).Range(
"A2"
).Value
TextBox16.Value = ThisWorkbook.Worksheets(
"Menu_1_Produkt_Artikel"
).Range(
"A2"
).Value
TextBox21.Value = ThisWorkbook.Worksheets(
"Menu_1_Auswahl_DE"
).Range(
"A2"
).Value
Else
Dim
iSelPOs
As
Integer
iSelPOs =
Me
.ComboBox1.ListIndex
TextBox6.Value = ThisWorkbook.Worksheets(
"Menu_1_Auswahl_DE"
).Cells(15, iSelPOs).Value
TextBox16.Value = ThisWorkbook.Worksheets(
"Menu_1_Produkt_Artikel"
).Cells(4, iSelPOs).Value
TextBox21.Value = ThisWorkbook.Worksheets(
"Menu_1_Auswahl_DE"
).Cells(5, iSelPOs).Value
End
If
End
Sub