• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

One time only cell can edit

Abhijeet

Active Member
Hi

I want to know how one time cell can edit in particular range after 1st time cell can not allow to edit or delete or any kind of changes please tell me how to do this
 
Don't know if you want this though...

1) Select all the cells in the worksheet
2) Right click, and then click Format Cells
3) Uncheck the Locked check box on the Protection tab then OK

Paste the code onto the code module of the worksheet.
(Right click on the sheet tab - [View Code])
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim r As Range
    Me.Unprotect
    For Each r In Target
        r.Locked = True
    Next
    Me.Protect
    Me.EnableSelection = 1
End Sub
 
Back
Top