Skip to content

Commit

Permalink
Fixed #115
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinke committed Aug 12, 2016
1 parent 3efdfd0 commit 3db1473
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ImportExcel.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions InstallModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $targetFiles = echo `
*.psm1 `
*.psd1 `
*.dll `
New-ConditionalText.ps1 `
New-ConditionalFormattingIconSet.ps1 `
Export-Excel.ps1 `
Export-ExcelSheet.ps1 `
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfi

# What's new

#### 8/12/2016
[Fixed](https://github.com/dfinke/ImportExcel/issues/115) reading the headers from cells, moved from using `Text` property to `Value` property.

#### 7/30/2016
* Added `Copy-ExcelWorksheet`. Let's you copy a work sheet from one Excel workbook to another.

Expand Down

0 comments on commit 3db1473

Please sign in to comment.