Private
Sub
Worksheet_Change(
ByVal
Target
As
Range)
If
Target.Column <> 1
Then
Exit
Sub
If
Target.Count > 1
Then
MsgBox
"Mehrfachauswahl ist nicht zulässig."
Application.EnableEvents =
False
Application.Undo
Application.EnableEvents =
True
Exit
Sub
End
If
If
Target.Offset(0, 1).Value =
"Profil 2"
Then
Target.Offset(0, 3).Locked =
False
Else
Target.Offset(0, 3).Locked =
True
End
If
End
Sub