I know this must be easy, but i've been trying.
I'd like Column K (7:107) to unlock if F in the same row has data
and lock if F (7:107) does not.
I'd like Column K (7:107) to unlock if F in the same row has data
and lock if F (7:107) does not.
Code:
Sub gotoInventory()
Dim rCell As Range
Dim rRng As Range
Set rRng = Sheets("inventory").Range("K7:K107")
For Each rCell In rRng.Cells
If Target.Offset(-5, 0).Value = "" Then ActiveCell.Locked = True
Next rCell