Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C33:F52")) Is Nothing Then
Application.EnableEvents = False
cng = Target.Value
Application.Undo
Target.Value = Target.Value
Else
End If
Application.EnableEvents = True
End Sub
Sir,@FGaxha
try this
copy and paste in MASTER sheet module
if the sheet name is MASTER will not update ,if change sheet name will update
VBA Code:Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Target.Cells.Count > 1 Then Exit Sub If Not Intersect(Target, Range("C33:F52")) Is Nothing Then If ActiveSheet.Name = "MASTER" Then cng = Target.Value Application.Undo Target.Value = Target.Value Else End If End If Application.EnableEvents = True End Sub
YES, it work Great.Sir,
It does not work
Hi Fluff,@FGaxha
The code will not stop people from deleting multiple cells, rows or columns from within the "C33 :F52" range. Nor will it stop people from inserting cells into that range.
Well,If the sheet is not protected then none of those settings will make any difference.
Also as I said before the code supplied will not stop people from changing the data in that range.
In which case none of those selection will make a difference, but you now saythe sheet is unprotected
In which case the sheet is protected.enter password.