117553
Nov 03, 2015, updated at Nov 05, 2015 (UTC)
4941
4
0
Excel Userform Textbox Activate und mehrfache Textbox Change möglich?
Hallo zusammen!
mit folgendem Code, steig ich in die Userform ein
Private Sub UserForm_Activate()
Dim n As Long
i = 3
For n = 1 To 160
Me.Controls("TextBox" & CStr(n)).Text = Cells(7, i)
i = i + 1
Next n
End Sub
jetzt hab ich das Problem, ich möchte nicht für 160 Textboxen immer folgendes eingeben (um Änderung speichern)
Private Sub TextBox1_Change()
Worksheets("Daten").Activate
Dim Text1 As String
Cells(7, 3) = TextBox1.Value
End Sub
gibt es hier auch eine me control Lösung um all Textboxen nach Änderung abzuspeichern?
mit folgendem Code, steig ich in die Userform ein
Private Sub UserForm_Activate()
Dim n As Long
i = 3
For n = 1 To 160
Me.Controls("TextBox" & CStr(n)).Text = Cells(7, i)
i = i + 1
Next n
End Sub
jetzt hab ich das Problem, ich möchte nicht für 160 Textboxen immer folgendes eingeben (um Änderung speichern)
Private Sub TextBox1_Change()
Worksheets("Daten").Activate
Dim Text1 As String
Cells(7, 3) = TextBox1.Value
End Sub
gibt es hier auch eine me control Lösung um all Textboxen nach Änderung abzuspeichern?
Please also mark the comments that contributed to the solution of the article
Content-Key: 287396
Url: https://administrator.de/contentid/287396
Printed on: April 19, 2024 at 11:04 o'clock
4 Comments
Latest comment
Moin,
Lösung findest du hier:
Excel VBA: Mehrere Comboboxen auf UF auf Change überwachen
Das lässt sich genau so auch mit Textboxen machen.
Gruß jodel32
Lösung findest du hier:
Excel VBA: Mehrere Comboboxen auf UF auf Change überwachen
Das lässt sich genau so auch mit Textboxen machen.
Gruß jodel32
Hallo Pilger83!
Und warum verwendest Du nicht die ControlSource-Eigenschaft der Text-Boxen ala:
Gruß Dieter
Und warum verwendest Du nicht die ControlSource-Eigenschaft der Text-Boxen ala:
ControlSource = Tabelle1!A1 |
Gruß Dieter