diff --git a/ImportExcel.psd1 b/ImportExcel.psd1 index ee3037b..b4a0509 100644 --- a/ImportExcel.psd1 +++ b/ImportExcel.psd1 @@ -4,7 +4,7 @@ RootModule = 'ImportExcel.psm1' # Version number of this module. -ModuleVersion = '2.2.10' +ModuleVersion = '2.3.0' # ID used to uniquely identify this module GUID = '60dd4136-feff-401a-ba27-a84458c57ede' diff --git a/Install.ps1 b/Install.ps1 index 7955b22..b43443a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -19,6 +19,7 @@ $fileList = echo ` Get-HtmlTable.ps1 ` Import-Html.ps1 ` Get-ExcelSheetInfo.ps1 ` + Get-ExcelWorkbookInfo.ps1 ` Get-Range.ps1 ` TrackingUtils.ps1 ` Copy-ExcelWorkSheet.ps1 ` diff --git a/InstallModule.ps1 b/InstallModule.ps1 index 162214b..df2c911 100644 --- a/InstallModule.ps1 +++ b/InstallModule.ps1 @@ -21,6 +21,7 @@ $targetFiles = echo ` New-PSItem.ps1 ` Pivot.ps1 ` Get-ExcelSheetInfo.ps1 ` + Get-ExcelWorkbookInfo.ps1 ` New-ConditionalText.ps1 ` Get-HtmlTable.ps1 ` Import-Html.ps1 ` @@ -30,7 +31,7 @@ $targetFiles = echo ` Set-CellStyle.ps1 ` plot.ps1 -ls $targetFiles | - ForEach { +Get-ChildItem $targetFiles | + ForEach-Object { Copy-Item -Verbose -Path $_.FullName -Destination "$($TargetPath)\$($_.name)" } \ No newline at end of file diff --git a/README.md b/README.md index 2f7768a..d116b24 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,35 @@ iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfi # What's new +#### 2/14/2017 +Big thanks to [DarkLite1](https://github.com/DarkLite1) for some great updates +* `-DataOnly` switch added to `Import-Excel`. When used it will only generate objects for rows that contain text values, not for empty rows or columns. + +* `Get-ExcelWorkBookInfo` - retrieves information of an Excel workbook. +``` + Get-ExcelWorkbookInfo .\Test.xlsx + + CorePropertiesXml : #document + Title : + Subject : + Author : Konica Minolta User + Comments : + Keywords : + LastModifiedBy : Bond, James (London) GBR + LastPrinted : 2017-01-21T12:36:11Z + Created : 17/01/2017 13:51:32 + Category : + Status : + ExtendedPropertiesXml : #document + Application : Microsoft Excel + HyperlinkBase : + AppVersion : 14.0300 + Company : Secret Service + Manager : + Modified : 10/02/2017 12:45:37 + CustomPropertiesXml : #document +``` + #### 12/22/2016 - Added `-Now` switch. This short cuts the process, automatically creating a temp file and enables the `-Show`, `-AutoFilter`, `-AutoSize` switches. @@ -60,7 +89,6 @@ Get-Process | ``` ![](https://github.com/dfinke/ImportExcel/blob/master/images/CellFormatting.png?raw=true) - #### 9/28/2016 [Fixed](https://github.com/dfinke/ImportExcel/pull/126) Powershell 3.0 compatibility. Thanks to [headsphere](https://github.com/headsphere). He used `$obj.PSObject.Methods[$target]` snytax to make it backward compatible. PS v4.0 and later allow `$obj.$target`.