+ Reply to Thread
Results 1 to 1 of 1

PivotItems-Slow For Each Loop

  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

    PivotItems-Slow For Each Loop

    I have a pivot field, Label, which has about 8K pivotitems. When I come into the pivot table (I don't create it) some of the 8K items are turned off. I want to turn them all on. The top code below does it, but it takes forever. I'd like to streamline it, and was trying to in the Test2 sub, but I get an error on the "Pi.visible" line saying "Object Variable or With block variable not set".

    Any help in speeding up this code would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by Mordred; 08-30-2011 at 01:13 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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