OfficeIMO

API Reference

Command

Add-OfficeExcelConditionalDataBar

Namespace PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelDocument
Outputs
System.Object

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: Context

Parameters

Color String requiredposition: 1pipeline: False
Bar color in hex (#RRGGBB or FFRRGGBB).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the range after applying the format.
Range String requiredposition: 0pipeline: False
A1 range to format.

Outputs

System.Object

Add-OfficeExcelConditionalDataBar -Color <String> -Document <ExcelDocument> [-PassThru] -Range <String> [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]
#
Parameter set: Document

Parameters

Color String requiredposition: 1pipeline: False
Bar color in hex (#RRGGBB or FFRRGGBB).
Document ExcelDocument requiredposition: namedpipeline: True (ByValue)
Workbook to operate on outside the DSL context.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the range after applying the format.
Range String requiredposition: 0pipeline: False
A1 range to format.
Sheet String optionalposition: namedpipeline: False
Worksheet name when using Document.
SheetIndex Nullable`1 optionalposition: namedpipeline: False
Worksheet index (0-based) when using Document.

Outputs

System.Object