I am making an excel sheet, I want to ensure that no one can change data once the data is entered. for that I used following code
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect ("newpass4")
Target.Locked = True
ActiveSheet.Protect ("newpass4")
End Sub
however...