Locked Property Example

This example locks only the cells in column 2.

Spreadsheet1.Cells.Locked = False
Spreadsheet1.Columns(2).Locked = True
Spreadsheet1.ActiveSheet.Protection.Enabled = True