Hi
I have been trying to use the following macros in a unprotected worksheet to enable me to prevent users from modifying the cells:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("X15:Z22")) Is Nothing Then Exit Sub
Application.EnableEvents = False
MsgBox "Hey, leave me alone!", 48, "Sorry, I'm protected."
Application.Undo
Application.EnableEvents = True
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If ActiveCell.HasFormula Then
MsgBox ("Formula in cell do not remove or change!")
Else
End If
End Sub

The issue i have is that this doesn't stop the user from deleting rows. I tried using protect worksheet function to overcome having to use macros all together but delete row ends up being disabled

Can anyone help or help me to modify these macros in some way to prevent row deletion?