AChimpNamedCornelius
Board Regular
- Joined
- Aug 22, 2002
- Messages
- 91
application.Worksheets("MyWorksheet").Range("A1", "R7").Locked = True
seems to not bomb at least, but I can still edit the cells. I go to Tools->Protection and protect the sheet, but then all cells are uneditable, not just the ones I want.
How do I make things like column headers, etc. unchangeable while still allowing the editing of the other cells?
I need to do this via code at startup to take care of people unlocking them by accident. In a similar post, the one response suggested recording a macro, locking a cell, then checking out what the macro recorded. That did nothing for me as the macro record button is grayed out.
seems to not bomb at least, but I can still edit the cells. I go to Tools->Protection and protect the sheet, but then all cells are uneditable, not just the ones I want.
How do I make things like column headers, etc. unchangeable while still allowing the editing of the other cells?
I need to do this via code at startup to take care of people unlocking them by accident. In a similar post, the one response suggested recording a macro, locking a cell, then checking out what the macro recorded. That did nothing for me as the macro record button is grayed out.