Pivot Table drill through in a new workbook
Pivot Table drill through in a new workbook
(OP)
Hi
When i drill through a pivot table, is there a way of opening the drill through in a new workbook instead of a new worksheet?
Thanks,
arv
When i drill through a pivot table, is there a way of opening the drill through in a new workbook instead of a new worksheet?
Thanks,
arv
RE: Pivot Table drill through in a new workbook
You can change the PivotTable Data Source. I've never done it this way...
1) Click the PivotTable report.
2) On the Analyze tab, in the Data group, click Change Data Source, and then click Change Data Source.
3) The Change PivotTable Data Source dialog box is displayed. Choose External Data
However, I've always chosen a different method, since I was very familiar with using Data > Get External Data > Microsoft Query... and I would write SQL code to get the data I wanted to aggregate using a Pivot Table Report all in Excel.
Skip,
Just traded in my OLD subtlety...
for a NUance!
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!
RE: Pivot Table drill through in a new workbook
1. disable DrillDown for a pivot table (=False),
2. intercept double-click in a parent worksheet (Worksheet_BeforeDoubleClick event) test if proper range was clicked,
3. execute ShowDetail if Target in step (2) is ok,
4. intercept new sheet event of workbook (Workbook_NewSheet event), text if it was added in step (3), you may need a flag for it,
5. copy the sheet if a sheet in step (4) was created by ShowDetail action.
As an alternative to step (4) to identify new sheet,, before executing ShowDetail = True a list of sheets can be created, and next compared with the new one.
combo
RE: Pivot Table drill through in a new workbook
What i meant was when i double click into one of cell in the pivot table, the details opens up in a new worksheet.
The aim is to open the details in a new workbook rather in a new worksheet.
Thanks,
arv