I need to run a macro that will protect all cells in a sheet. I'm using the following but want to avoid selecting the entire sheet and can't figure out how to lock the cells without selecting them.
Using something like Range("A1:Z100").Locked = True would probably work for this file but I wanted to see if there was another option.
Thanks
Code:
Cells.Select
Selection.Locked = True
Using something like Range("A1:Z100").Locked = True would probably work for this file but I wanted to see if there was another option.
Thanks