HotXLS-dokumentation

Protection permission properties

Disse Boolean-egenskaber styrer tilladelserne pr. handling, der gemmes i BIFF8 SheetProtect-recorden for et beskyttet klassisk XLS-regneark. Sæt dem, inden projektmappen gemmes; kald Protect to enable worksheet protection

Syntaks

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;

Default values

AllowSelectLockedCells and AllowSelectUnlockedCells default to True The other permission properties default to False

Eksempel

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

Se også