.Cells(3, 1) = CDate(TextBox1) 'zeit_1_1
.Cells(3, 2) = CDate(TextBox2) 'zeit_1_2
.Cells(3, 3) = TextBox3 'text_1
If TextBox1 <> "" Then ' macht erst wenn in TextBox1 was drinsteht. Evtl Txt2 dazu nehmen mit _
and/or
.Cells(3, 1) = CDate(TextBox1) 'zeit_1_1
.Cells(3, 2) = CDate(TextBox2) 'zeit_1_2
.Cells(3, 3) = TextBox3 'text_1
End If
Private Sub CommandButton2_Click()
'Hiermit werden die Texte in die Zellen geschrieben
With Tabelle1
'Anzeige 1
.Cells(3, 1) = CDate(TextBox1) 'zeit_1_1
.Cells(3, 2) = CDate(TextBox2) 'zeit_1_2
.Cells(3, 3) = TextBox3 'text_1
'Anzeige 1
.Cells(4, 1) = CDate(TextBox4) 'zeit_2_1
.Cells(4, 2) = CDate(TextBox5) 'zeit_2_2
.Cells(4, 3) = TextBox6 'text_2
'Anzeige 1
.Cells(5, 1) = CDate(TextBox7) 'zeit_3_1
.Cells(5, 2) = CDate(TextBox8) 'zeit_3_2
.Cells(5, 3) = TextBox9 'text_3
'Anzeige 1
.Cells(6, 1) = CDate(TextBox10) 'zeit_4_1
.Cells(6, 2) = CDate(TextBox11) 'zeit_4_2
.Cells(6, 3) = TextBox12 'text_4
End With
'betätigt den Button Abrechen um das Fenster zu schliessen
Call CommandButton1_Click
End Sub
If TextBox1 <> "" And TextBox2 <> "" And TextBox3 <> "" Then
.Cells(3, 1) = CDate(TextBox1) 'zeit_1_1
.Cells(3, 2) = CDate(TextBox2) 'zeit_1_2
.Cells(3, 3) = TextBox3 'text_1
End If
'Anzeige 1
If TextBox4 <> "" And TextBox5 <> "" And TextBox6 <> "" Then
.Cells(4, 1) = CDate(TextBox4) 'zeit_2_1
.Cells(4, 2) = CDate(TextBox5) 'zeit_2_2
.Cells(4, 3) = TextBox6 'text_2
End If
'---------------------usw-----------------