This commit is contained in:
dfinke
2015-08-04 22:15:38 -04:00
parent 92dffa1785
commit feebc8f598
2 changed files with 32 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ function New-ConditionalFormattingIconSet {
$Address,
[ValidateSet("ThreeIconSet","FourIconSet","FiveIconSet")]
$ConditionalFormat,
[bool]$Reverse
[Switch]$Reverse
)
DynamicParam {

19
testCCFMTMultiple.ps1 Normal file
View File

@@ -0,0 +1,19 @@
ipmo importexcel -Force
$f = "$pwd\test.xlsx"
rm $f -ErrorAction Ignore
$p=@{
ConditionalFormat = "ThreeIconSet"
IconType = "Signs"
Reverse = $true
}
$RuleHandles = New-ConditionalFormattingIconSet -Address "C:C" @p
$RulePM = New-ConditionalFormattingIconSet -Address "D:D" @p
ps |
Where company |
Select Company, Name, Handles, PM |
Sort Handles -Descending |
Export-Excel $f -Show -AutoSize -ConditionalFormat $RuleHandles,$RulePM