#Excel: #Text mit #VBA #fett #formatieren – aber nur #zumTeil
Sie wollen bestimmte Teile Ihrer Zellen in #Excel #fett #formatieren? Per #VBA? Das Beispiel hier sollte Ihnen dabei gut helfen: es macht den ganzen Text innerhalb der mit eckigen Klammern gekennzeichneten Bereiche fett und entfernt die Klammern auch gleich. Sub Brackets_Bold() Dim myCell As Range Dim myTxt As Variant Dim myLen As Long Dim StartPos As Long Dim EndPos As Long For Each myCell In ActiveWorkbook.ActiveSheet.UsedRange.Cells EndPos = 1 StartPos = InStr(EndPos, myCell.Text, „[„) While StartPos <> 0 If Left(myCell.Formula,…