daniel50096230
Board Regular
- Joined
- May 2, 2008
- Messages
- 163
I would like to locked the cells between row 1 to 30 and column 1 to 4,how should I code it?
Code:
For i = 1 To 30
For j = 1 To 14
ActiveSheet.Cells(i, j).Select
ActiveSheet.Cells(i, j).Locked = True
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=False
Next j
Next i