pivot tables...what a nightmare!!!!!!

danno_mbk

Board Regular
Joined
Sep 6, 2004
Messages
102
hey there, I am certainly picking your brains today !

I have a pivot table and its seriously doing my head in I have spent ages trying to sort this out.
basically I have a table of data and I want the pivot to appear in another sheet which is named 'temp', but the flippin thing doesnt like it..


ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
"'WL PCLT'!R1C1:R31C16").CreatePivotTable TableDestination:=Range("'PCLT Temp'!$A$1"), _
TableName:="PivotTable1"

("'PCLT Temp'!$A$1"), this bit of code I entered to specify the sheet, it should be "A1" (thats what appears when I record the thing, but there is no where in teh recorded code to specify where the destination sheet for the pivot able is ???

any ideas would be much appreciated, as I have got to the point of bining it and going home !
cheers
Danno
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,203,543
Messages
6,056,023
Members
444,840
Latest member
RazzelDazel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top