Essas propriedades Boolean controlam as permissões por ação salvas no registro SheetProtect do BIFF8 para uma planilha XLS clássica protegida. Defina-as antes de salvar a pasta de trabalho; chame Protect para habilitar a proteção da planilha
Sintaxe
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;
Valores padrão
AllowSelectLockedCells e AllowSelectUnlockedCells têm como padrão True. As outras propriedades de permissão têm como padrão False
Exemplo
Sheet.AllowDeleteRows := True;
Sheet.AllowInsertRows := True;
Sheet.AllowAutoFilter := True;
Sheet.Protect('mypass123');
Veja também