mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-31 23:53:19 +00:00
Initialize header in begin block
This commit is contained in:
@@ -56,6 +56,7 @@ function Export-Excel {
|
||||
)
|
||||
|
||||
Begin {
|
||||
$script:Header = $null
|
||||
if($KillExcel) {
|
||||
Get-Process excel -ErrorAction Ignore | Stop-Process
|
||||
while (Get-Process excel -ErrorAction Ignore) {}
|
||||
|
||||
Reference in New Issue
Block a user