A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Right click the sheet tab, view code and paste this code in on the right. Change the range to the correct one and the password to the correct one.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, MyRange As Range
Set MyRange = Range("A1:A1000")
If Not Intersect(Target, MyRange) Is Nothing Then
ActiveSheet.Unprotect Password:="secret"
For Each c In Intersect(Target, MyRange)
c.Locked = True
Next
ActiveSheet.Protect Password:="secret"
End If
End Sub