Datum wird in Excel nicht sofort erkannt
12.09.2006 18:29:49
ThomasA
mein Problem ist, dass ich über eine UserForm (ComboBox) ein Datum eingebe, welches dann in Excel in Zelle "K27" angezeigt wird.
Das Datum wird in Excel in dem gewünschten Format z.b ("12.09.2006") angezeigt, allerdings vom Programm in Excel nicht als Datum erkannt. Erst nach dem ich auf auf die Zelle in der das Datum steht ("K27") klicke und auf eine andere Zelle gehe, erkennt er die Zelle "K27" als Datum und das Programm rechnet dann einwandfei.
Weiss jemand was ich falsch mache?
Hier der Code:
Sheets("KT").Cells(27, 11) = ComboBox4.Value
Cells(27, 11).Value = Format(ComboBox4, "dd/mm/yyyy")
Bin für jede Anregung sehr dankbar!
Gruß
thomas
PS: Es bringt nichts wenn ich die Zelle "K27" in Excel vorher als Format "Datum" kategorisiere! Wird durch die Eingabe über die ComboBox dennoch nicht als Datum in Excel erkannt.