Private Sub WorkSheet_Change(ByVal Target As Range)
If Not Target.HasFormula Then
Application.EnableEvents = False
MsgBox "You may not change this cell"
Application.Undo
Application.EnableEvents = True
End If
End Sub
Private Sub WorkSheet_Change(ByVal Target As Range)
If Not Intersect(Target,Range("myFormulas")) Is Nothing Then
Application.EnableEvents = False
MsgBox "You may not change this cell"
Application.Undo
Application.EnableEvents = True
End If
End Sub