123amitjain
New Member
- Joined
- Sep 10, 2013
- Messages
- 5
the below codes are for entire sheet , but i just want to run the just for the entire column q
i just want to lock the column q for the entry just for one time.
how do i ?
i tried many times ....can anybody help me?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cl As Range
ActiveSheet.Unprotect
For Each cl In Target
If cl.Value <> "" Then
check = MsgBox("is this entry correct? this cell cant be edited after once entered", vbYesNo, "cell Lock Notification")
If check = vbYes Then
cl.Locked = True
Else
End If
End If
Next cl
ActiveSheet.Protect
End Sub
i just want to lock the column q for the entry just for one time.
how do i ?
i tried many times ....can anybody help me?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cl As Range
ActiveSheet.Unprotect
For Each cl In Target
If cl.Value <> "" Then
check = MsgBox("is this entry correct? this cell cant be edited after once entered", vbYesNo, "cell Lock Notification")
If check = vbYes Then
cl.Locked = True
Else
End If
End If
Next cl
ActiveSheet.Protect
End Sub