AW: datum wird ohne punkte an tb zurückgegeben
28.08.2007 08:35:00
Holger
Hallo Hajo,
hätte auch den Code sofort listen können...sorry.
mit dem Code fülle ich meine Text/Comboboxen in der UF
Private Sub ComboBox1_Change()
On Error Resume Next
Application.ScreenUpdating = False
TextBox2 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 2))
TextBox3 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 5))
TextBox4 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 6))
TextBox5 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 7))
TextBox6 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 8))
TextBox7 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 9))
TextBox8 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 10))
TextBox9 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 11))
TextBox10 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 14))
TextBox11 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 15))
TextBox13 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 18))
TextBox14 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 19))
TextBox21 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 12))
TextBox22 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 16))
ComboBox2 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 4))
ComboBox3 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 20))
ComboBox4 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 13))
ComboBox5 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 17))
ComboBox6 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 3))
ComboBox7 = Format(Sheets("Bew_Dat").Cells(ComboBox1.ListIndex + 2, 21))
End Sub
in der Textbox3 steht das Geburtsdatum, wass im sheet auch als Datum formatiert ist. Alles funtzt auch prima, nur das GebDatum wird ohne Punkte angezeigt. Hast Du hierfür ne Lösung?
Mit der UF kann ich eingegebene Daten ändern und zurück speichern.
Gruß und Dank
Holger