TXLSWorksheet

property

These Boolean properties control the per-action permissions saved in the BIFF8 SheetProtect record for a protected classic XLS worksheet. Set them before saving the workbook; call Protect to enable worksheet protection

AllowInsertHyperlinks: Boolean;

property AllowEditObjects: Boolean;
property AllowEditScenarios: Boolean;
property AllowFormatCells: Boolean;
property AllowFormatColumns: Boolean;
property AllowFormatRows: Boolean;
property AllowInsertColumns: Boolean;
property AllowInsertRows: Boolean;
property AllowInsertHyperlinks: Boolean;
property AllowDeleteColumns: Boolean;
property AllowDeleteRows: Boolean;
property AllowSelectLockedCells: Boolean;
property AllowSort: Boolean;
property AllowAutoFilter: Boolean;
property AllowPivotTables: Boolean;
property AllowSelectUnlockedCells: Boolean;

AllowDeleteColumns: Boolean;

AllowSelectLockedCells property AllowSelectUnlockedCells property True property False

AllowPivotTables: Boolean;

Sheet.AllowDeleteRows := True;
Sheet.AllowInsertRows := True;
Sheet.AllowAutoFilter := True;
Sheet.Protect('mypass123');

AllowSelectUnlockedCells: Boolean;