This documentation is archived and is not being maintained.

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

Dim protection1 As Protection

Dim returnValue As Boolean
returnValue = protection1.AllowSorting

bool AllowSorting {get;}
public boolean get_AllowSorting();
function get AllowSorting() : Boolean;

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms