Update Export-Excel.ps1

This commit is contained in:
headsphere
2016-09-27 11:06:50 +01:00
committed by GitHub
parent 27dea78413
commit 1cd583ca12

View File

@@ -78,7 +78,7 @@ function Export-Excel {
foreach($format in $ConditionalFormat ) {
$target = "Add$($format.Formatter)"
$rule = ($ws.ConditionalFormatting).PSObject.Methods[$target].Invoke($format.Address, $format.IconType)
$rule = ($ws.ConditionalFormatting).PSObject.Methods[$target].Invoke($format.Range, $format.IconType)
$rule.Reverse = $format.Reverse
}