mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 15:53:32 +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
|
||||
|
||||
@@ -7,7 +7,7 @@ function New-ConditionalText {
|
||||
[String]$Range,
|
||||
[OfficeOpenXml.Style.ExcelFillStyle]$PatternType=[OfficeOpenXml.Style.ExcelFillStyle]::Solid,
|
||||
[ValidateSet(
|
||||
"ContainsText","NotContainsText","BeginsWith","EndsWith",
|
||||
"Equal","ContainsText","NotContainsText","BeginsWith","EndsWith",
|
||||
"Last7Days","LastMonth","LastWeek",
|
||||
"NextMonth","NextWeek",
|
||||
"ThisMonth","ThisWeek",
|
||||
|
||||
Reference in New Issue
Block a user