Add 'Equal' for conditional text type

This commit is contained in:
dfinke
2016-02-17 19:44:14 -05:00
parent 06c1f2a560
commit 60151de80a
2 changed files with 6 additions and 2 deletions

View File

@@ -347,7 +347,11 @@ function Export-Excel {
$rule=($ws.Cells[$Range].ConditionalFormatting).$target()
if($targetConditionalText.Text) {
$rule.Text = $targetConditionalText.Text
if($targetConditionalText.ConditionalType -eq "equal") {
$rule.Formula= $targetConditionalText.Text
} else {
$rule.Text = $targetConditionalText.Text
}
}
$rule.Style.Font.Color.Color = $targetConditionalText.ConditionalTextColor