Protection.AllowSorting Property
Returns True if the sorting option is allowed on a protected worksheet.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property AllowSorting As Boolean
Get
'Usage
Dim instance As Protection
Dim value As Boolean
value = instance.AllowSorting
bool AllowSorting { get; }
Property Value
Type: System.Boolean
Remarks
In a protected worksheet, sorting can only be performed on unlocked or unprotected cells.
The AllowSorting property can be set by using the Protect method arguments.