mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added conditional type for lt, le, gt, ge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user