Hallo zusammen,
ich versuche "mal wieder" eine Excel Tabelle auszulesen, die u.a. einen Datumswert in andere Zellen kopiert.
Spoiler anzeigen
while $eintrag <> ""
$sFormat = "TT.MM.JJJJ hh:mm:ss" ;Format String tells _ExcelNumberFormat to make it a $ currency
_ExcelNumberFormat($oBook2, $sFormat, 7,7,7,20) ;Start on Row 1, Start on Column 1, End on Row 5, End on Column 5
$eintrag = _ExcelReadCell($oBook1,$counter,1)
Select
Case $eintrag = string("Ist_PISA_WT25")
$wert = _ExcelReadCell($oBook1,$counter,2)
_ExcelWriteCell($obook2,$wert,7,7)
EndSelect
Wenn ich so vorgehe, kommt als Ergebnis leider kein Datum raus, sondern #########. Wenn man sich den Zellinhalt dann ansieht, ist es das Datum nur ohne Punkte dazwischen.
Warum formatiert es nicht richtig, hab schon mehrere Varianten durch getestet.
Gruß
milch