Zahlenformatierung
01.06.2020 09:51:38
Wolfgang
ich möchte aus einer Tabelle mehrere Zahlen im CSV-Format exportieren und dabei das Komma durch einen Punkt ersetzen. x3 wäre in diesem fall eine Variable, die exportiert wird:
x3 = Sheets(1).Range("I6").Value
x3 = Format(x3, "0.00")
x3 = Replace(x3, ",", ".")
Jetzt habe ich das Problem, dass manchmal die Zahl in ein Datumsformat umgewandelt wird:
10,00 ergibt 10.00
aber 7,70 ergibt "Jul 50"
Was mache ich falsch?
Vielen Dank für einen Tipp!
Wolfgang