mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Updated
This commit is contained in:
20
README.md
20
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
|
||||

|
||||
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user