Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

Texteil fett und farbig

Forumthread: Texteil fett und farbig

Texteil fett und farbig
29.05.2017 13:53:45
Gregor
Hallo zusammen
Ich habe folgenden Code:
.Cells(27, "B") = "11.12.2016 bis" & Chr(10) & CDate(strText) & " Nord-Süd"
.Cells(28, "B") = "11.12.2016 bis" & Chr(10) & CDate(strText) & " Süd-Nord"
Nun möchte ich " Nord-Süd" fett und blau und " Süd-Nord" fett und grün darstellen (alles andere normal und schwarz).
Ist das möglich und wie?
Danke und Gruss
Gregor
Anzeige

5
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
Geht nicht mit Formel, nur mit festem Text! (owT)
29.05.2017 13:55:03
EtoPHG

Genau. TFHot... ;-)
29.05.2017 16:13:27
EtoPHG

Anzeige
AW: Texteil fett und farbig
29.05.2017 14:04:26
yummi
Hallo Gregor

With .Cells(27, "B")
.Value = "11.12.2016 bis" & Chr(10) & CDate(strText) & " Nord-Süd"
With .Characters(Start:=25, Length:=8).Font
.FontStyle = "Fett"
.Color = -4165632
End With
End With
With .Cells(28, "B")
.Value = "11.12.2016 bis" & Chr(10) & CDate(strText) & " Süd-Nord"
With .Characters(Start:=25, Length:=8).Font
.FontStyle = "Fett"
.Color = -11489280
End With
End With
Gruß
yummi
Anzeige
AW: Texteil fett und farbig
29.05.2017 17:12:00
Gregor
Hallo yummi
Genial, und das bei dieser Hitze!
Vielen Dank und Gruss
Gregor
Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18