exceluser90
New Member
- Joined
- Jun 1, 2011
- Messages
- 15
Hey I am currently trying to lock columns in my sheet based on the number of items in a ListBox, yet the code does not appear to have any affect.
It seems like such a simple line of code, yet it doesn't seem to work. The cells remain unlocked.
Code:
If lockbox.Value = True Then
Main.Range(Main.Columns(1), Main.Columns(Quarters.ListCount + 1)).Locked = True
End If
It seems like such a simple line of code, yet it doesn't seem to work. The cells remain unlocked.