andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I have this code that I am using:
Now I have cells in F13:F41 that I am making sure are unchecked as "locked" however, anytime I run the code, these cells get locked in addition to the cells that I want to lock. Is there something I can do to fix this?
Thanks,
Andrew
I have this code that I am using:
Code:
Sub completed() ActiveSheet.Unprotect "majinbuu"
Range("E11").Select
ActiveCell.Value = Range("A9") & " " & Range("E43") & " " & Date & " " & Time
Range("E13:E41").Select
Selection.Locked = True
Selection.FormulaHidden = False
Range("E43").Select
Selection.Locked = True
Selection.FormulaHidden = False
ActiveWorkbook.Save
ActiveSheet.Protect "majinbuu"
ActiveSheet.EnableSelection = xlUnlockedCells
End Sub
Now I have cells in F13:F41 that I am making sure are unchecked as "locked" however, anytime I run the code, these cells get locked in addition to the cells that I want to lock. Is there something I can do to fix this?
Thanks,
Andrew