vba - Hide pivot items efficiently -


I have presented a report based on a data table that the extension is too long (there are thousands of rows) Wants to summarize the data so that it can drill down only on the total of which he is interested in.

I am currently successful, for a specified area by looping through all the axis items of all axis tables and hiding them. However, it is taking a significant amount (> 15 minutes) to run. Is there any way to adapt it using a different process or is there any option to do these tasks in bulk (through a setting or option) that can be fast?

To perform this task:

  Sub groupGeneral_ID () as PivotTable Excel in the form of Pivot ITM DIM PI as Worksheet DIM PI. Application ScreenApplication = Wrong Axel Application Compression = xlCalculationManual if left (ws.Name, 3) = "wrap" in each worksheet then Excel.Application.StatusBar = "Groupement des jrnl_id" & amp; For every PT, ws.Name for each PIT with PT.pavotfield ("jrnl_id"). PivotItems with pi.ShowDetail = False next PI end with the next PT end if the next ws Excel.Application.StatusBar = "" Excel application. Screen Updating = True Axle.Application. Calculation = XL CalculationAmamatic and All  

I am using Excel 2007. Thanks!

Yes: instead of computing through Pivotfield's axis items you can only use Are there. Soviet dipate property of Pivitfield eg:

Change

  for each PI. PivotItems pi.ShowDetail = False Next pi  

with

 . Showdetail = false  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -