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