API Reference
Command
Set-OfficeExcelSheetVisibility
Shows or hides a worksheet.
Remarks
Shows or hides a worksheet.
Examples
Hide the current worksheet.
PS>ExcelSheet 'Data' { Set-OfficeExcelSheetVisibility -Hide }
Marks the sheet as hidden.
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
Set-OfficeExcelSheetVisibility [-Hide] [-PassThru] [-Show] [<CommonParameters>]#Parameter set:
ContextParameters
- Hide SwitchParameter
- Hide the worksheet.
- PassThru SwitchParameter
- Emit the worksheet after applying visibility.
- Show SwitchParameter
- Show the worksheet.
Outputs
System.Object
Set-OfficeExcelSheetVisibility -Document <ExcelDocument> [-Hide] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] [-Show] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- Hide SwitchParameter
- Hide the worksheet.
- PassThru SwitchParameter
- Emit the worksheet after applying visibility.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Nullable`1
- Worksheet index (0-based) when using Document.
- Show SwitchParameter
- Show the worksheet.
Outputs
System.Object