mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added contains blanks example
This commit is contained in:
15
Examples/ConditionalFormatting/ContainsBlanks.ps1
Normal file
15
Examples/ConditionalFormatting/ContainsBlanks.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
$ContainsBlanks = New-ConditionalText -ConditionalType ContainsBlanks
|
||||
|
||||
$data = $(
|
||||
New-PSItem a b c (echo p1 p2 p3)
|
||||
New-PSItem
|
||||
New-PSItem d e f
|
||||
New-PSItem
|
||||
New-PSItem
|
||||
New-PSItem g h i
|
||||
)
|
||||
|
||||
$file ="c:\temp\testblanks.xlsx"
|
||||
|
||||
rm $file -ErrorAction Ignore
|
||||
$data | Export-Excel $file -show -ConditionalText $ContainsBlanks
|
||||
Reference in New Issue
Block a user