da mir hier schon einmal geholfen wurde, möchte ich mich heute erneut mit einem Anliegen an Euch wenden.
Ich habe mir eine Eingabemaske per UserForm gebastelt mit einem CommandButton, der die Daten aus den TexBox-, DTPicker- und ComboBoxen in die angegebenen Zeilen einfügt. Dieser funktioniert soweit auch, was ich allerdings nicht hin bekomme ist, dass die Daten in die nächste freie Zeile im aktivierten Tabellenblatt eingefügt werden. Momentan werden diese immer wieder überschrieben.
Private Sub CommandButton1_Click()
Dim FinalRow As Integer
FinalRow = Cells(Rows.Count, 4).End(xlUp).Row + 1
FinalRow = ActiveCell.Row + 1
Cells(4, 12).Value = UserForm1.TextBox1.Value
Cells(4, 11).Value = UserForm1.TextBox4.Value
Cells(4, 13).Value = UserForm1.TextBox5.Value
Cells(4, 14).Value = UserForm1.TextBox6.Value
Cells(4, 15).Value = UserForm1.TextBox7.Value
Cells(4, 16).Value = UserForm1.TextBox8.Value
Cells(4, 18).Value = UserForm1.TextBox9.Value
Cells(4, 22).Value = UserForm1.TextBox10.Value
Cells(4, 21).Value = UserForm1.TextBox11.Value
Cells(4, 8).Value = UserForm1.DTPicker1.Value
Cells(4, 9).Value = UserForm1.DTPicker2.Value
Cells(4, 17).Value = UserForm1.ComboBox2.Value
Cells(4, 20).Value = UserForm1.ComboBox3.Value
End Sub
Danke Grüße Kuni