mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
17 lines
397 B
PowerShell
17 lines
397 B
PowerShell
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
|
|
|
$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"
|
|
|
|
Remove-Item $file -ErrorAction Ignore
|
|
$data | Export-Excel $file -show -ConditionalText $ContainsBlanks |