From cd4505076eb11add291e4e35d708d65bd422097a Mon Sep 17 00:00:00 2001 From: Doug Finke Date: Fri, 10 Apr 2015 10:20:20 -0400 Subject: [PATCH] Updated --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 2c5d597..f143460 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,32 @@ What's new #### 4/8/2015 * Implemented exporting data to **named sheets** via the -WorkSheename parameter. +#### 4/10/2015 +* Renamed `AutoFitColumns` to `AutoSize` +* Implemented `Export-MultipleExcelSheets` #### Examples `gsv | Export-Excel .\test.xlsx -WorkSheetname Services` `dir -file | Export-Excel .\test.xlsx -WorkSheetname Files` `ps | Export-Excel .\test.xlsx -WorkSheetname Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM` +#### Example Export-MultipleExcelSheets +![image](https://raw.githubusercontent.com/dfinke/ImportExcel/master/images/ExportMultiple.gif) + + $p = Get-Process + + $DataToGather = @{ + PM = {$p|select company, pm} + Handles = {$p|select company, handles} + Services = {gsv} + Files = {dir -File} + Albums = {(Invoke-RestMethod http://www.dougfinke.com/powershellfordevelopers/albums.js)} + } + + Export-MultipleExcelSheets -Show -AutoSize .\testExport.xlsx $DataToGather + + + ***NOTE*** If the sheet exists when using *-WorkSheetname* parameter, it will be deleted and then added with the new data. Get-Process Exported to Excel