AW: Ergänzung.und Probe
20.09.2013 16:41:32
hary
Hallo Rolf
Das meinte ich.
Juergen probier mal so.
Sub schrift()
Dim hoch As Long
Dim Zelle As Range
Dim FirstPos&
Dim MyTxt$
hoch = 100 'Anzahl der Zeichen bei dieser Schriftgroesse
MyTxt = Tabelle2.Range("G42").Value
Set Zelle = Tabelle3.Range("E7")
FirstPos = InStr(1, Zelle, MyTxt)
Zelle.Characters(FirstPos, Len(MyTxt)).Font.ColorIndex = 41
Zelle.Characters(FirstPos, Len(MyTxt)).Font.FontStyle = "Kursiv"
Zelle = Left(Zelle, FirstPos - 1) & String(hoch - Len(Zelle), " ") & Mid(Zelle, FirstPos, 9 _
^ 9)
MyTxt = Tabelle2.Range("G13").Value
FirstPos = InStr(1, Zelle, MyTxt)
Zelle.Characters(FirstPos, Len(MyTxt)).Font.Size = 6.5
Set Zelle = Nothing
End Sub
gruss hary