mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-04 01:23:22 +00:00
Initial commit
This commit is contained in:
18
TryConditional.ps1
Normal file
18
TryConditional.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
$xlFile = "c:\temp\testCF.xlsx"
|
||||
rm $xlFile
|
||||
|
||||
$data = Get-Process | where Company | select Company,pm,handles,name
|
||||
|
||||
$cfHandles = New-ConditionalFormattingIconSet `
|
||||
-Address "C:C" `
|
||||
-ConditionalFormat ThreeIconSet `
|
||||
-IconType Flags -Reverse
|
||||
|
||||
$cfPM = New-ConditionalFormattingIconSet `
|
||||
-Address "B:B" `
|
||||
-ConditionalFormat FourIconSet `
|
||||
-Reverse -IconType TrafficLights
|
||||
|
||||
|
||||
$data |
|
||||
Export-Excel -AutoSize -AutoFilter -ConditionalFormat $cfHandles, $cfPM -Path $xlFile -Show
|
||||
Reference in New Issue
Block a user