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