mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
15 lines
341 B
PowerShell
15 lines
341 B
PowerShell
$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 |