Ich habe eine Userform (Userform1) auf der habe ich einen Button (CommandButton1) und wenn ich auf dem Klicke soll etwas mit den Textboxen in Tabellenblatt: Tabelle1 passieren. Folgender Code
Ich habe eine Userform (Userform1) auf der habe ich einen
Button (CommandButton1) und wenn ich auf dem Klicke soll etwas
mit den Textboxen in Tabellenblatt: Tabelle1 passieren.
hallo dnbma,
Private Sub CommandButton1\_Click()
With Worksheets("Tabelle1")
.TextBox1.Left = .Columns("A:A").Left + 5
.TextBox2.Left = .Columns("B:B").Left + 5
.TextBox3.Left = .Columns("C:C").Left + 5
.TextBox4.Left = .Columns("D:smiley:").Left + 5
.TextBox1.Width = .Columns("A:A").Width - 7
.TextBox2.Width = .Columns("B:B").Width - 7
.TextBox3.Width = .Columns("C:C").Width - 7
.TextBox4.Width = .Columns("D:smiley:").Width - 7
End With
End Sub