+ Reply to Thread
Results 1 to 3 of 3

Turning off Pivot Subtotals

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Turning off Pivot Subtotals

    I've got a massive pivot table, created by out IT department, that I programmatically rearrange for my needs. I use my old tried and true methods for all of my operations, and everything works well, until we come to turning off the subtotals. My full macro is shown below, and the two methods I've used to turn off subtotals. Just that small piece of code takes over 1/2 hour to run (I keep killing it after 1/2 hour, I don't have that much time to kill), WITH calculation, screenupdating, etc. turned OFF (by the Speedon macro), manual update turned ON.

    I think the problem may be that we're running through every PivotField. This pivot is huge, pulling date from a data warehouse. So, I wonder if there's any easy way to just turn off the subtotals for the PivotFields that I'm actually using in my pivot. Any help I can get on that would be appreciated.

    BTW, the "STOP" sections in the code were just so I could spot where my bottleneck is.
    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Turning off Pivot Subtotals

    Well, it looks like it might NOT be my subtotal routine. I added msgboxes (ie "Added Monetary Amount") to check my progress through the macro. I complete all operations except .ManualUpdate = false. I get TO it, but not THROUGH it. I tried it manually doing each step, and the pivot works fine. Any ideas?

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Turning off Pivot Subtotals

    FYI I’ve always found automating the menu item to turn off sub totals to be much faster (using commandbars.executemso)

    If you comment out the sub totals parts, does the rest run smoothly?
    Rory

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot table Group feature not turning off
    By James_SF in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-12-2017, 08:29 PM
  2. Pivot Table Variable Not Turning On
    By rbirch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2015, 09:55 AM
  3. Pivot table subtotals
    By laliparker in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 11-28-2013, 10:39 AM
  4. Pivot Table turning out oddly
    By edtabakman in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-20-2012, 07:22 PM
  5. Turning Off Pivot Table Refresh
    By Dendrinos2 in forum Excel General
    Replies: 0
    Last Post: 11-14-2011, 09:35 AM
  6. Turning of auto subtotal in Pivot Tables
    By jpx in forum Excel General
    Replies: 0
    Last Post: 01-28-2010, 05:14 PM
  7. Pivot Table subtotals
    By MattS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2005, 05:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1