Private
Sub
EINTRAG_UEBERTRAGEN()
Dim
lZeile
As
Long
Dim
i
As
Integer
Dim
Tabelle
As
String
Tabelle = ComboBox1.Value
If
ListBox1.ListIndex = -1
Then
Exit
Sub
lZeile = ListBox1.List(ListBox1.ListIndex, 0)
For
i = 1
To
iCONST_ANZAHL_EINGABEFELDER
Sheets(Tabelle).Cells(lZeile, i) =
Me
.Controls(
"TextBox"
& i)
Next
i
ListBox1.List(ListBox1.ListIndex, 1) = TextBox1
ListBox1.List(ListBox1.ListIndex, 2) = TextBox2
ListBox1.List(ListBox1.ListIndex, 3) = TextBox3
End
Sub