Protection Property Example
This example locks the cells in column 2.
Spreadsheet1.Columns(2).Locked = True Spreadsheet1.ActiveSheet.Protection.Enabled = True