Added conditional type for lt, le, gt, ge

This commit is contained in:
dfinke
2016-02-29 10:01:05 -05:00
parent 5d449f91e6
commit 8f05e9d57d
3 changed files with 30 additions and 2 deletions

View File

@@ -347,8 +347,8 @@ function Export-Excel {
$rule=($ws.Cells[$Range].ConditionalFormatting).$target()
if($targetConditionalText.Text) {
if($targetConditionalText.ConditionalType -match "equal|notequal") {
if($targetConditionalText.Text) {
if($targetConditionalText.ConditionalType -match "equal|notequal|lessthan|lessthanorequal|greaterthan|greaterthanorequal") {
$rule.Formula= $targetConditionalText.Text
} else {
$rule.Text = $targetConditionalText.Text