Initial commit

This commit is contained in:
dfinke
2015-09-11 11:40:19 -04:00
parent abaabc6fa1
commit bd2464d654

18
TryConditional.ps1 Normal file
View 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