ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot table - show detail (https://www.excelbanter.com/excel-programming/357293-pivot-table-show-detail.html)

Wolfie

Pivot table - show detail
 
I'm trying to create a procedure to show the detail in a pivot table. Using
the macro recorder, I get:

Range("B7").Select
Selection.ShowDetail = True

However, I'd prefer to reference the pivot field (field name = Division)
directly.

TIA,

Dave



Tom Ogilvy

Pivot table - show detail
 
Dim pvtitm as PivotItem
for each pvtitm in
activesheet.PivotTables(1).PivotFields("Division") .PivotItems
pvtitm.ShowDetail = True
Next

--
Regards,
Tom Ogilvy


"Wolfie" wrote in message
...
I'm trying to create a procedure to show the detail in a pivot table.

Using
the macro recorder, I get:

Range("B7").Select
Selection.ShowDetail = True

However, I'd prefer to reference the pivot field (field name = Division)
directly.

TIA,

Dave





Wolfie

Pivot table - show detail
 
Thanks Tom!

"Tom Ogilvy" wrote in message
...
Dim pvtitm as PivotItem
for each pvtitm in
activesheet.PivotTables(1).PivotFields("Division") .PivotItems
pvtitm.ShowDetail = True
Next

--
Regards,
Tom Ogilvy


"Wolfie" wrote in message
...
I'm trying to create a procedure to show the detail in a pivot table.

Using
the macro recorder, I get:

Range("B7").Select
Selection.ShowDetail = True

However, I'd prefer to reference the pivot field (field name = Division)
directly.

TIA,

Dave








All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com