Reinhard Schüll schrieb:
Hab noch was vergessen, weil Du sagst ja "Auslesen jeden einzelnen
Zeichens", d.h. Du hast sowas wie c²=a²+b² in bunt in einer Zelle stehen?
Dazu musst Du das Characters-Object bemühen um an die einzelnen
Formatierungen zu kommen. Ich bin mir nicht sicher, aber ich denke das
geht nur wenn Du die Zeichen einzeln abklapperst:
Sub PasteCharacters(FromR As Range, ToR As Range)
'Überträgt das Einzelzeichenformat
Dim RLen As Long, I As Long
RLen = WorksheetFunction.Min(Len(FromR), Len(ToR))
For I = 1 To RLen
ToR.Characters(I, 1).Font.Name = _
FromR.Characters(I, 1).Font.Name
ToR.Characters(I, 1).Font.FontStyle = _
FromR.Characters(I, 1).Font.FontStyle
ToR.Characters(I, 1).Font.Size = _
FromR.Characters(I, 1).Font.Size
ToR.Characters(I, 1).Font.Strikethrough = _
FromR.Characters(I, 1).Font.Strikethrough
ToR.Characters(I, 1).Font.Superscript = _
FromR.Characters(I, 1).Font.Superscript
ToR.Characters(I, 1).Font.Subscript = _
FromR.Characters(I, 1).Font.Subscript
ToR.Characters(I, 1).Font.Underline = _
FromR.Characters(I, 1).Font.Underline
ToR.Characters(I, 1).Font.OutlineFont = _
FromR.Characters(I, 1).Font.OutlineFont
ToR.Characters(I, 1).Font.Shadow = _
FromR.Characters(I, 1).Font.Shadow
ToR.Characters(I, 1).Font.ColorIndex = _
FromR.Characters(I, 1).Font.ColorIndex
Next
End Sub
Vielleicht hat ja noch jemand eine Idee wie das schneller/besser geht.
Andreas.