This commit is contained in:
dfinke
2015-10-16 12:29:00 -04:00
parent 2b973be468
commit a009afbb11

View File

@@ -54,16 +54,12 @@ function Export-Excel {
$ws = $pkg | Add-WorkSheet -WorkSheetname $WorkSheetname -NoClobber:$NoClobber
foreach($format in $ConditionalFormat ) {
#$obj = [PSCustomObject]@{
# Address = $Address
# Formatter = $ConditionalFormat
# IconType = $bp.IconType
#}
$target = "Add$($format.Formatter)"
$rule = ($ws.ConditionalFormatting).$target($format.Address, $format.IconType)
$rule.Reverse = $format.Reverse
}
# Force at least one cell value
$ws.Cells[1, 1].Value = ""
$Row = 1
if($Title) {