OK say i have a range of cells from A1:B10. The cells in the range A1 to A10 contain a dropdown list with 2 options (lock, dont_lock). The cells in the range B1 to B10 are empty cells which allow the user to enter data. what i want to do is lock individual cells based on values in the adjacent cell. so if cell A1 is set to "lock" then i lock cell B1. IF cell A2 is set to "dont_lock" then B2 is not locked and so on. I have tried using a for loop shown in my code below but it does not work. Can Anyone help ?
Dim rCell As Range
Dim rRng As Range
Set rRng = Sheet1.Range("A1:B10")
For Each rCell In rRng.Cells
If rCell = "Lock" Then
Range("B1").Locked = True
End If
Next rCell
Column A has drop down
menu, do you mean a drop down list in Excel cell? – bonCodigo