API Reference
Command
Add-OfficeExcelConditionalDataBar
Adds a data bar conditional format to a range.
Remarks
Adds a data bar conditional format to a range.
Examples
Add blue data bars.
PS>ExcelSheet 'Data' { Add-OfficeExcelConditionalDataBar -Range 'D2:D50' -Color '#4F81BD' }
Applies data bars to column D.
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
Add-OfficeExcelConditionalDataBar -Color <String> [-PassThru] -Range <String> [<CommonParameters>]#Parameter set:
ContextParameters
- Color String
- Bar color in hex (#RRGGBB or FFRRGGBB).
- PassThru SwitchParameter
- Emit the range after applying the format.
- Range String
- A1 range to format.
Outputs
System.Object
Add-OfficeExcelConditionalDataBar -Color <String> -Document <ExcelDocument> [-PassThru] -Range <String> [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Color String
- Bar color in hex (#RRGGBB or FFRRGGBB).
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- PassThru SwitchParameter
- Emit the range after applying the format.
- Range String
- A1 range to format.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Nullable`1
- Worksheet index (0-based) when using Document.
Outputs
System.Object