AW: Kommentarinhalt abfragen
Josef
Hallo Steffen,
das geht zB. so.
Sub findTextInComment()
Dim objCmt As Comment
Dim strFind As String, strTmp As String
strFind = "blaue Farbe"
For Each objCmt In ActiveSheet.Comments
strTmp = objCmt.Text
If strTmp Like "*" & strFind & "*" Then
MsgBox "Der Suchtext '" & strFind & "' wurde" & vbLf & "Zelle " & objCmt.Parent.Address(0, 0) & " gefunden!", vbInformation, "Suche"
Application.Goto objCmt.Parent, True
Exit For
End If
Next
End Sub
Gruß Sepp