mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 07:43:23 +00:00
Update
This commit is contained in:
@@ -4,7 +4,7 @@ function New-ConditionalFormattingIconSet {
|
|||||||
$Address,
|
$Address,
|
||||||
[ValidateSet("ThreeIconSet","FourIconSet","FiveIconSet")]
|
[ValidateSet("ThreeIconSet","FourIconSet","FiveIconSet")]
|
||||||
$ConditionalFormat,
|
$ConditionalFormat,
|
||||||
[bool]$Reverse
|
[Switch]$Reverse
|
||||||
)
|
)
|
||||||
|
|
||||||
DynamicParam {
|
DynamicParam {
|
||||||
|
|||||||
19
testCCFMTMultiple.ps1
Normal file
19
testCCFMTMultiple.ps1
Normal 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
|
||||||
Reference in New Issue
Block a user