From 2b7ffe0c124ff42454fc5026563b69f137e24076 Mon Sep 17 00:00:00 2001 From: dfinke Date: Sun, 17 Jan 2016 14:56:32 -0500 Subject: [PATCH] Added --- Examples/ConditionalFormatting/ConditionalText.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Examples/ConditionalFormatting/ConditionalText.ps1 diff --git a/Examples/ConditionalFormatting/ConditionalText.ps1 b/Examples/ConditionalFormatting/ConditionalText.ps1 new file mode 100644 index 0000000..f651f83 --- /dev/null +++ b/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 + ) \ No newline at end of file