Cmdlet
Set-OfficeExcelSheetTabColor
Sets or clears the worksheet tab color.
Syntax
Examples
Set a worksheet tab color.
ExcelSheet 'Data' { Set-OfficeExcelSheetTabColor -Color '#336699' }Applies the color to the active worksheet tab.
Parameters
- -Clear SwitchParameter
- Clear the worksheet tab color.
- -Color String
- Named color, RGB hex, or RGBA hex value.
- -PassThru SwitchParameter
- Emit the worksheet after applying the tab color.
- -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.