ich habe dieses Makro auch übers Forum:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Application.ScreenUpdating = False
If Intersect(Target, Range("A10:C20")) Is Nothing Then Exit Sub
ActiveSheet.Unprotect ("kk")
On Error GoTo fehler
Application.EnableEvents = False
If Target.Count = 1 Then
Target = Application.Proper(Target)
End If
fehler:
Application.EnableEvents = True
'Wenn mehr als eine Zelle markiert wurde dann Makro beenden
If Target.Count > 1 Then Exit Sub
Select Case Target.Value
Case "U"
Target.Interior.ColorIndex = 35
Case "F"
Target.Interior.ColorIndex = 35
Selection.Font.ColorIndex = 1 'schwarz
End Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios _
:=True, Password:= ("kk")
Application.ScreenUpdating = True
End Sub
Ich möchte den Schutz erst aufheben, wenn ich über das Drophdown Menü/Pfeil den Buchstaben
auswähle.
Leider bei mir immer entschützt.
gruß Kurt MG