This commit is contained in:
dfinke
2016-08-12 17:16:15 -04:00
parent 3efdfd0e0b
commit 3db1473c05
3 changed files with 7 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
. $PSScriptRoot\Import-Html.ps1
. $PSScriptRoot\Get-Range.ps1
. $PSScriptRoot\TrackingUtils.ps1
. $PSScriptRoot\Copy-ExcelWorkSheet.ps1
if($Host.Version.Major -ge 5) {
. $PSScriptRoot\plot.ps1
@@ -76,11 +77,11 @@ function Import-Excel {
} else {
if(!$Header) {
$Header = foreach ($Column in 1..$Columns) {
$worksheet.Cells[$HeaderRow,$Column].Text
$worksheet.Cells[$HeaderRow,$Column].Value
}
}
if($Rows -eq 1) {
if($Rows -eq 1) {
$Header | ForEach {$h=[Ordered]@{}} {$h.$_=''} {[PSCustomObject]$h}
} else {
foreach ($Row in ($HeaderRow+1)..$Rows) {