D
Diana
Try using the actual location:
TableDestination:="[YourWorkbookName]Report!R3C1"
As opposed to:
TableDestination:=""
I hope this helps.
active workbook?
TableDestination:="[YourWorkbookName]Report!R3C1"
As opposed to:
TableDestination:=""
I hope this helps.
table is created on the sheet named "Report" within the-----Original Message-----
How would I have to change this code so that the pivot
active workbook?
(SourceType:=xlDatabase, SourceData:="data"). _ActiveWorkbook.PivotCaches.Add
TableDestination:=ActiveSheet.Cells(3, 1)CreatePivotTable TableDestination:="", TableName:="PivotTable1"
ActiveSheet.PivotTableWizard
RowFields:=Array("PDWK", "WK - HM Store", _ActiveSheet.Cells(3, 1).Select
ActiveSheet.PivotTables("PivotTable1").SmallGrid = False
ActiveSheet.PivotTables("PivotTable1").AddFields