API Reference
Command
Unprotect-OfficeExcelSheet
Removes worksheet protection.
Remarks
Removes worksheet protection.
Examples
Unprotect the active sheet.
PS>ExcelSheet 'Data' { Unprotect-OfficeExcelSheet }
Removes worksheet protection.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Unprotect-OfficeExcelSheet [-PassThru] [<CommonParameters>]#Parameter set:
ContextParameters
- PassThru SwitchParameter
- Emit the worksheet after removing protection.
Outputs
System.Object
Unprotect-OfficeExcelSheet -Document <ExcelDocument> [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- PassThru SwitchParameter
- Emit the worksheet after removing protection.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Nullable`1
- Worksheet index (0-based) when using Document.
Outputs
System.Object