mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-13 14:53:19 +00:00
Updated
This commit is contained in:
20
README.md
20
README.md
@@ -11,12 +11,32 @@ What's new
|
|||||||
|
|
||||||
#### 4/8/2015
|
#### 4/8/2015
|
||||||
* Implemented exporting data to **named sheets** via the -WorkSheename parameter.
|
* Implemented exporting data to **named sheets** via the -WorkSheename parameter.
|
||||||
|
#### 4/10/2015
|
||||||
|
* Renamed `AutoFitColumns` to `AutoSize`
|
||||||
|
* Implemented `Export-MultipleExcelSheets`
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
`gsv | Export-Excel .\test.xlsx -WorkSheetname Services`
|
`gsv | Export-Excel .\test.xlsx -WorkSheetname Services`
|
||||||
`dir -file | Export-Excel .\test.xlsx -WorkSheetname Files`
|
`dir -file | Export-Excel .\test.xlsx -WorkSheetname Files`
|
||||||
`ps | Export-Excel .\test.xlsx -WorkSheetname Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM`
|
`ps | Export-Excel .\test.xlsx -WorkSheetname Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM`
|
||||||
|
|
||||||
|
#### Example Export-MultipleExcelSheets
|
||||||
|

|
||||||
|
|
||||||
|
$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.
|
***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
|
Get-Process Exported to Excel
|
||||||
|
|||||||
Reference in New Issue
Block a user