diff --git a/Examples/PivotTable/PivotTableWithName.ps1 b/Examples/PivotTable/PivotTableWithName.ps1 new file mode 100644 index 0000000..489fcac --- /dev/null +++ b/Examples/PivotTable/PivotTableWithName.ps1 @@ -0,0 +1,16 @@ + +Import-Module ..\..\ImportExcel.psd1 -Force + +Remove-Item .\test1.xlsx -ErrorAction Ignore + +$ExcelParams = @{ + Path = ".\test1.xlsx" + IncludePivotTable = $true + PivotRows = 'Company' + PivotTableName = 'MyTable' + PivotData = @{'Handles' = 'sum'} + Show = $true +} + +Get-Process | Select-Object Company, Handles | + Export-Excel @ExcelParams \ No newline at end of file