mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-02-27 18:03:45 +00:00
Added Range param for conditional text
This commit is contained in:
15
Examples/ConditionalFormatting/GetProcess.ps1
Normal file
15
Examples/ConditionalFormatting/GetProcess.ps1
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user