Hi all,
I need some help fixing this code.
I am trying to lock those specific ranges, but it keeps throwing an error every time I try to implement it. The error reads "Unable to set the locked property of the Range class"
All help would be appreciated. Thank you in advance.
I need some help fixing this code.
Code:
Worksheets("Sheet1").Range("A6:A167").Locked = FalseWorksheets("Sheet1").Range("C6:C167").Locked = False
ActiveSheet.Protect Password:="abc"
I am trying to lock those specific ranges, but it keeps throwing an error every time I try to implement it. The error reads "Unable to set the locked property of the Range class"
All help would be appreciated. Thank you in advance.