370 Aufrufe
Gefragt in Tabellenkalkulation von ahorn38 Experte (3.2k Punkte)
Hallo,

habe eine Schleife, in der ich einen Text erstelle und einzelne Textteile durch vblf trenne:

[/code]For i = 1 To lngDauer
strText2 = strText2 & " Rate " & Format(DateSerial(1, Month(dteUebernahme) + i, 1), "MMM") & ": " & Format(dblRate, "#,##0.00 €") & vbLf
Next[code]

Das Problem dabei ist, dass dadurch am Textende auch eine Leerzeile entsteht. Gibt es eine Möglichkeit, diese wieder zu beseitigen?
VG A

2 Antworten

0 Punkte
Beantwortet von
hi Andreas ^^

For i = 1 To lngDauer
strText2 = strText2 & " Rate " & Format(DateSerial(1, Month(dteUebernahme) + i, 1), "MMM") & ": " & Format(dblRate, "#,##0.00 €")
If i < lngDauer Then strText2 = strText2 & vbLf
Next


Gruss Nighty
0 Punkte
Beantwortet von ahorn38 Experte (3.2k Punkte)
Hallo nighty,

super, genau die Lösung!! Warum bin ich nicht darauf gekommen....?
VG A.
...