ich habe mir ein Formular zusammengebaut das über 100 Textboxen enthält. Ich befülle dies aus einem Tabellenblatt aus der aktiven Zeile.
TextBox1 = Cells(ActiveCell.Row, 181)
TextBox2 = Cells(ActiveCell.Row, 182)
TextBox3 = Cells(ActiveCell.Row, 183)
TextBox4 = Cells(ActiveCell.Row, 184)
TextBox5 = Cells(ActiveCell.Row, 185)
TextBox6 = Cells(ActiveCell.Row, 186)
TextBox7 = Cells(ActiveCell.Row, 187)
TextBox8 = Cells(ActiveCell.Row, 188)
TextBox9 = Cells(ActiveCell.Row, 189)
TextBox10 = Cells(ActiveCell.Row, 190)
usw.
danach kann ich Änderungen vornehmen und schreibe die Daten wieder zurück
Cells(ActiveCell.Row, 181) = TextBox1
Cells(ActiveCell.Row, 182) = TextBox2
Cells(ActiveCell.Row, 183) = TextBox3
Cells(ActiveCell.Row, 184) = TextBox4
Cells(ActiveCell.Row, 185) = TextBox5
Cells(ActiveCell.Row, 186) = TextBox6
Cells(ActiveCell.Row, 187) = TextBox7
Cells(ActiveCell.Row, 188) = TextBox8
Cells(ActiveCell.Row, 189) = TextBox9
Cells(ActiveCell.Row, 190) = TextBox10
Nachteil bei der Sache ist, dass das bei den vielen Textboxen einige Zeit dauert bis die Daten zurück auf das Tabellenblatt geschrieben wurden.
Denke das es auch einfacher über eine Textbox-Variable und einer Schleife gehen müsste, habe es aber leider nicht hinbekommen.
Freue mich über einen Lösungsansatz, danke.
Rudi