Added Range param for conditional text

This commit is contained in:
dfinke
2016-01-25 09:33:58 -05:00
parent a53c12d2f4
commit 408824ee66
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
rm .\testExport.xlsx -ErrorAction Ignore
ps | where Company | select Company, Name, PM, Handles, *mem* |
Export-Excel .\testExport.xlsx -Show -AutoSize -AutoNameRange `
-ConditionalFormat $(
New-ConditionalFormattingIconSet -Address "C:C" `
-ConditionalFormat ThreeIconSet -IconType Arrows
) -ConditionalText $(
New-ConditionalText Microsoft -ConditionalTextColor Black
New-ConditionalText Google -BackgroundColor Cyan -ConditionalTextColor Black
New-ConditionalText authors -BackgroundColor LightBlue -ConditionalTextColor Black
New-ConditionalText nvidia -BackgroundColor LightGreen -ConditionalTextColor Black
)