Währungs-Übergabe von Access nach Word

Hallo zusammen,

Wie kann ich es erreichen, dass der Wert einer Variable in Word als Währung formatiert wird oder zumindest mit 2 Nachkommastellen?

Bisher sieht das so aus:

With wwobj.Selection
.Font.Color = vbBlue
.Font.Bold = 1
.Typetext "Stundenpreis "
.Font.Color = vbBlack
.Font.Bold = 0
.Typetext AStundenpreis(i)
End with

In Word erscheint AStundenpreis allerdings nur als Ganzzahl

Gruß
Matthias

Hallo Matthias,

Bisher sieht das so aus:

Ich fümmel einfach mal an Deinem Code rum … :smile:

With wwobj.Selection
 .Font.Color = vbBlue
 .Font.Bold = 1
 .Typetext "Stundenpreis "
 .Font.Color = vbBlack
 .Font.Bold = 0
 .Typetext Format(AStundenpreis(i),"###.00")
End with

Gruß, Rainer

Ohja, danke für die Antwort, das klappt bestens :smile:
Gruß Matthias