Cmdlet
Set-OfficeExcelSheetVisibility
Shows or hides a worksheet.
Syntax
Examples
Hide the current worksheet.
ExcelSheet 'Data' { Set-OfficeExcelSheetVisibility -Hide }Marks the sheet as hidden.
Parameters
- -Hide SwitchParameter
- Hide the worksheet.
- -PassThru SwitchParameter
- Emit the worksheet after applying visibility.
- -Show SwitchParameter
- Show the worksheet.
- -Document ExcelDocument
- Workbook to operate on outside the DSL context.
- -Sheet String
- Worksheet name when using Document.
- -SheetIndex Int32
- Worksheet index (0-based) when using Document.
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.