Sorry, I was trying to get rid of some of my naming conventions to simplify the reading of the code. I switched from a While loop to a For loop when I was writing the post because I wasn't familiar with VB sytax when I first wrote the macro. I forgot to take out the line where I increment the...
I've written a little script to restrict the PivotItems that are visible for a specific PivotField by iterating through the pivot items and setting their visibility to false if they don't fall within a user specified range. The code currently looks something like this...
I've fount it! I've been struggling with this problem all day, and I've found that you can set the PivotCache.MissingItemsLimit to 0 and that will get rid of all the old values in the PivotField objects. Whew! That's a load off. The old values were causing one of my macros to crash. Hope you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.