Re: Datumsformat
08.05.2002 07:08:24
Georg
Hallo, AndreasVielen Dank für Deinen Tipp. Da meine VBA Kenntnisse sehr bescheiden sind, hier den Code mit dem ich die Daten aus der Textbox jeweils in die Zelle schreibe. Kannst Du mir sagen, wo ich da bezüglich des Formats was einsetzen muß?
Private Sub CommandButton3_Click()
Application.ScreenUpdating = False
Set frm = UserForm3
Sheets("Vorsorge").Activate
'letzte belegte Zelle in Tabelle finden
Range("B65536").End(xlUp).Offset(1, 0).Select
With frm
ActiveCell.Value = .TextBox2.Value
ActiveCell.Offset(0, 9).Value = CDate(.TextBox1.Value)
ActiveCell.Offset(0, 1).Value = .TextBox3.Value
ActiveCell.Offset(0, 2).Value = .TextBox4.Value
ActiveCell.Offset(0, 3).Value = .TextBox5.Value
ActiveCell.Offset(0, 4).Value = .TextBox6.Value
ActiveCell.Offset(0, 8).Value = .TextBox7.Value
ActiveCell.Offset(0, 5).Value = .TextBox8.Value
ActiveCell.Offset(0, 6).Value = .TextBox9.Value
ActiveCell.Offset(0, 7).Value = .TextBox10.Value
End With
End Sub
Vielen Dank und einen schönen Tag
Gruß; Georg