Forum Discussion
Chan_Tze_Leong
May 11, 2021Brass Contributor
Excel Macro
I have created 2 Name Managers i.e opex (blue colour) and mtd (green). Using a macro, I would like to unlock these areas (Name manager) and lock the rest (other cells) so that users can key in their ...
- May 11, 2021
For example:
Sub UnlockNamedRanges() Cells.Locked = True Range("opex").Locked = False Range("mtd").Locked = False ActiveSheet.Protect ' Password:="secret" End Sub
HansVogelaar
May 11, 2021MVP
For example:
Sub UnlockNamedRanges()
Cells.Locked = True
Range("opex").Locked = False
Range("mtd").Locked = False
ActiveSheet.Protect ' Password:="secret"
End Sub- Chan_Tze_LeongMay 11, 2021Brass ContributorThanks, Hans. Appreciate the help.