Estas propiedades booleanas controlan los permisos por accion guardados en el registro SheetProtect BIFF8 de una hoja de trabajo protegida. Cada propiedad habilita una accion especifica que los usuarios pueden realizar incluso con la proteccion activada Protect to enable worksheet
protection
Sintaxis
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 predeterminados
AllowSelectLockedCells AllowSelectLockedCells y AllowSelectUnlockedCells tienen True como valor predeterminado. Las demas propiedades de permiso tienen False como valor predeterminado
AllowSelectUnlockedCells default to True
Las demás propiedades de permisos toman por defecto False
Ejemplo
Sheet.AllowDeleteRows := True;
Sheet.AllowInsertRows := True;
Sheet.AllowAutoFilter := True;
Sheet.Protect('mypass123');
Vease tambien