ich habe folgendes Problem. Ich will eine Zahl aus einem geöffnetem Word Dokument in eine Excelmappe kopieren dort Berechnungen ausführen und den Wert anschließend wieder in Word kopieren.
Das funktioniert eigentlich soweit auch ganz gut. Mein Problem ist allerding, dass er die Zahlen nur bis zum Wert 0,999999... richtig kopiert, sobald eine 1 vor dem Komma steht schreibt er keine Dezimalzahl mehr in Excel sondern eine Ganze Zahl.
Bsp.: 2,0234 wird in Excel 20.234
Folgend mein Code zum kopieren der Textmarke aus Word und einfügen in Excel.
If ActiveDocument.Bookmarks.Exists("tan_betaZM") = True Then
ActiveDocument.Bookmarks("tan_betaZM").Select
Selection.Copy
End If
ExcelSheet.Application.Visible = True
ExcelSheet.Application.Range("A11").Select
ExcelSheet.Application.ActiveSheet.Paste
ExcelSheet.Application.CutCopyMode = False
Vielleicht könnt ihr mir helfen. Vielen Dank schon mal im Voraus.