Posted to microsoft.public.excel.worksheet.functions
|
|
How to lock a cell once the value is entered
Assuming your sheet is protected and cells are UNlocked.
right click sheet tabview codeinsert this
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect
Target.Locked = True
ActiveSheet.Protect
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Andy" wrote in message
...
Hi - I want to lock the cell once the value is entered by the user. i.e.
for
example, if somebody enters 1 as value in a cell, it should not allow the
user to change the status later unless it is approved. Is it possible!
|