Worksheet.EnableSelection Property (2007 System)
Gets or sets a value indicating which cells can be selected on the sheet.
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
The following code example uses the Protect method to protect the worksheet, and then uses the property to prevent any cell on the worksheet from being selected.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.