_Worksheet.EnableSelection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns or sets what can be selected on the sheet. Read/write XlEnableSelection.
public:
property Microsoft::Office::Interop::Excel::XlEnableSelection EnableSelection { Microsoft::Office::Interop::Excel::XlEnableSelection get(); void set(Microsoft::Office::Interop::Excel::XlEnableSelection value); };
public Microsoft.Office.Interop.Excel.XlEnableSelection EnableSelection { get; set; }
Public Property EnableSelection As XlEnableSelection
Property Value
Remarks
This property takes effect only when the worksheet is protected: xlNoSelection prevents any selection on the sheet, xlUnlockedCells allows only those cells whose Locked property is False to be selected, and xlNoRestrictions allows any cell to be selected.