Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinke committed Jan 17, 2016
1 parent acb02d2 commit 2b7ffe0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Examples/ConditionalFormatting/ConditionalText.ps1
@@ -0,0 +1,10 @@
$f = ".\conditionalTextFormatting.xlsx"
rm $f -ErrorAction Ignore

Get-Service |
Select Status, Name, DisplayName, ServiceName |
Export-Excel $f -Show -AutoSize -ConditionalText $(
New-ConditionalText stop darkred
New-ConditionalText running darkblue
New-ConditionalText app DarkMagenta
)

0 comments on commit 2b7ffe0

Please sign in to comment.