Name of pivot table comes from caller

This commit is contained in:
dfinke
2017-10-12 12:06:16 -04:00
parent 57c02a466d
commit 48607e403e
2 changed files with 7 additions and 14 deletions

View File

@@ -544,7 +544,7 @@ Function Export-Excel {
if ($PivotTableDefinition) {
foreach ($item in $PivotTableDefinition.GetEnumerator()) {
$targetName = $item.Key
$pivotTableName = $targetName + 'PivotTable'
$pivotTableName = $targetName #+ 'PivotTable'
$wsPivot = $pkg | Add-WorkSheet -WorkSheetname $pivotTableName -NoClobber:$NoClobber
$pivotTableDataName = $targetName + 'PivotTableData'