Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
First...........select all cells on sheet and format them to unlocked.
Add this event code to the worksheet module. Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error GoTo enditall Application.EnableEvents = False If Target.Cells.Column = 3 Then ActiveSheet.Unprotect Password:="justme" n = Target.Row If Me.Range("C" & n).Value < "" Then Me.Range("C" & n).Locked = True End If End If enditall: ActiveSheet.Protect Password:="justme" Application.EnableEvents = True End Sub When you enter a value in column C that cell will become locked for editing. Gord On Sun, 24 Jun 2012 12:00:21 +0000, Moideen wrote: We are maintaing an excel sheet for expense details, After Entering the data on Amount Coloumn Need to Lock The Amount Coloumn with Password. Please help me. Coloumn 1 Coloumn 2 Coloumn 3 Date Item Name Amount |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Re : How to lock a cell once the value is entered | Excel Worksheet Functions | |||
LOCK CELL AFTER DATA IS ENTERED | Excel Discussion (Misc queries) | |||
Lock Data in Cell after entered | Excel Discussion (Misc queries) | |||
How do I lock a cell automatically after it has data entered. | Excel Discussion (Misc queries) | |||
how can i lock cell immediately if any value Entered? | New Users to Excel |