Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '*******************************************************************************
- ' Locks all cells with formulas
- '
- ' ~ AJ Javadi ~
- '*******************************************************************************
- Sub LockCellsWithFormulas()
- With ActiveSheet
- .Unprotect
- .Cells.Locked = False
- .Cells.SpecialCells(xlCellTypeFormulas).Locked = True
- .Protect AllowDeletingRows:=True
- End With
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement