als ersten vielen HERZLICHEN DANK für eure Beiträge sowie für diesen Formum.
habe eine Frage und zwar:
Habe ein Userform mit je 18 TextBox und ComboBox.
Es wird nur die letzte Zeile der Tabelle beschrieben mit dem TextBox& ComoBox 18.
Vielen DANK für eure hilfe schon mal im Voraus
Gruss Vilson
Markro:
Private Sub cmd_OK_Click()
Dim wksuebertrag As Worksheet
Dim intLetzteZeile As Long
Set wksuebertrag = Worksheets("Daten")
With wksuebertrag
intLetzteZeile = wksuebertrag.Cells(Rows.Count, 2).End(xlUp).Row + 1
.Cells(intLetzteZeile, 2).Value = cbo_Datum
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung
.Cells(intLetzteZeile, 3).Value = txt_Anzahl
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_2
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_2
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_3
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_3
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_4
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_4
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_5
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_5
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_6
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_6
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_7
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_8
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_9
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_9
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_10
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_10
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_11
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_11
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_12
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_12
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_13
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_13
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_14
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_14
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_15
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_15
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_16
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_16
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_17
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_17
.Cells(intLetzteZeile, 4).Value = cbo_Artikelbezeichnung_18
.Cells(intLetzteZeile, 3).Value = txt_Anzahl_18
End Sub