Skip to main content

protect_sheet

Function protect_sheet 

Source
pub fn protect_sheet(
    ws: &mut WorksheetXml,
    config: &SheetProtectionConfig,
) -> Result<()>
Expand description

Protect a sheet with optional password and permission settings.

When a sheet is protected, users cannot edit cells unless specific permissions are granted via the config. The password is hashed using the legacy Excel algorithm.