pcquestions
New Member
- Joined
- Jul 23, 2010
- Messages
- 2
I have an spreadsheet that will be used by mutiple users I have created the following VBA code to lock the cells as data is entered, for that matter works p[erfectly, but when I need to change somenthing in the spreadsheet I have to unprotect every cell and most of the time I need to change 3 or 4 cells
There is a way to unprotect the sheet and make the changes and protect again?
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect "Password"
Target.Locked = True
ActiveSheet.Protect "Password"
End Sub
THANKS
There is a way to unprotect the sheet and make the changes and protect again?
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect "Password"
Target.Locked = True
ActiveSheet.Protect "Password"
End Sub
THANKS