VBA-Lösung
27.12.2002 13:21:19
Nico D
hatte selber mal so ein ähnliches Problem nur mein Bereich bezog sich auf einen Farbindex. Kenne nur eine VBA-Lösung!
Sub Kommentar_einfügen()
ActiveSheet.Protect password:= "gewünschtes Passwort", userinterfaceonly:= true
If Selection.Interior.ColorIndex = 35 Then Exit Sub
Dim strComment As String
strComment = Inputbox("xxx")
With ActiveCell
.AddComment
.Comment.Visible = False
.Comment.text text:=Application.UserName & vbLf & strComment
End With
End Sub
mfg
Nico D