eine weitere Frage habe ich noch. Mit dem Code suche ich einen Begriff im Arbeitsblatt und markiere die entsprechende Zelle rot.
Es kommt vor, dass der Begriff mehr als einmal gefunden wird. Wie kann ich dann alle gefundenen Ergebnisse auf einmal markieren?
Dim Bereich As Range
Set Bereich = Range(Cells(4, 3), Cells(64, 8)).Find("Test", lookat:=xlPart, LookIn:=xlValues, MatchCase:=True)
If Not Bereich Is Nothing Then
MsgBox "Das Wort Test ist in Verwendung. Entsprechende Zelle ist rot gefärbt."
Range(Bereich.Address).Interior.ColorIndex = 3
Else
MsgBox "Keine Verwendung des Wortes"
End If